We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LetDirective
Add new input to the LetDirective that accepts suspense template:
@Component({ selector: 'ngrx-posts', template: ` <ul *ngrxLet="posts$ as posts; suspenseTpl: loading"> <li *ngFor="let post of posts">{{ post.name }}</li> </ul> <ng-template #loading> <p>Loading...</p> </ng-template> ` }) export class PostsComponent { readonly posts$ = this.postsService.getPosts(); constructor(private readonly postsService: PostsService) {} }
The suspense template should be displayed when passed Observable is in a suspense state.
The text was updated successfully, but these errors were encountered:
feat(component): add suspense template input to LetDirective (#3377)
345ee53
Closes #3340
markostanimirovic
Successfully merging a pull request may close this issue.
Add new input to the
LetDirective
that accepts suspense template:The suspense template should be displayed when passed Observable is in a suspense state.
The text was updated successfully, but these errors were encountered: