π¨βπ« Co-Founder of This is Learning, Organizer of AarhusJS
βοΈ Writer, Speaker, FOSS Maintainer π Author
π Microsoft MVP π GitHub Star
π Nx Champion π¦Έ Angular Hero of Education
As you says, *rxSubscrive and *ngFor or other structural directives cannot be at the same place. I recommend adding <ng-container *rxSubscribe> at the root for subscribing to a stream.
<ng-container *rxSubscribe="state$; let state">
...sync-full template...
</ng-container>
π¨βπ« Co-Founder of This is Learning, Organizer of AarhusJS
βοΈ Writer, Speaker, FOSS Maintainer π Author
π Microsoft MVP π GitHub Star
π Nx Champion π¦Έ Angular Hero of Education
Great explanation, Suguru! Would you like to publish it on Angular inDepth?
One observation: To use RxSubscribeDirective with NgForOf, we would have to do a nested structual directive.
This is certainly an Angular In Depth standard of articleπ
Thank you Lars! Yes, I'd love to!
As you says,
*rxSubscrive
and*ngFor
or other structural directives cannot be at the same place. I recommend adding<ng-container *rxSubscribe>
at the root for subscribing to a stream.Come to our Slack workspace, and Max will set you up on the new site π
I think it would be useful to show an example with a for loop such as:
Did you consider supporting microsyntax? Something like
Maybe even