Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Directive({
- selector: '[ifLogged]'
- })
- export class AuthProtectDirective {
- constructor(private user: User ) { }
- @HostBinding('style.display') get display() {
- return this.user.token ? null : 'none';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement