Guest User

Untitled

a guest
Jan 24th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. import { AuthService } from './shared/auth.service';
  2. import { Observable } from 'rxjs/Rx';
  3. import { Component } from '@angular/core';
  4.  
  5. @Component({
  6. selector: 'app-root',
  7. templateUrl: './app.component.html',
  8. styleUrls: ['./app.component.css']
  9. })
  10. export class AppComponent {
  11. isLoggedIn: Observable<boolean>;
  12. title = 'LocalStorage';
  13. constructor( public authService: AuthService ) {
  14. this.isLoggedIn = authService.isLoggedIn();
  15. }
  16. }
Add Comment
Please, Sign In to add comment