-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
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
Parent application #216
Parent application #216
Conversation
</mat-tab> | ||
</mat-tab-group> | ||
<div *ngIf="role==='parent' then isParent; else isProvider"></div> | ||
<ng-template #isParent> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentations
|
||
@Select(RegistrationState.user) | ||
user$: Observable<User>; | ||
role; ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type?
@@ -35,6 +43,9 @@ export class ApplicationsComponent implements OnInit { | |||
this.applications = applications | |||
); | |||
|
|||
this.user$.subscribe(user => this.role = user.role); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use selectSnapshot to avoid additional subscription
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LenkVskv see examples in these components
No description provided.