From GandalfLife, 1 Month ago, written in JavaScript.
Embed
  1. import { Component, OnInit } from '@angular/core';
  2. import { UserService } from '../../shared/user.service';
  3.  
  4. @Component({
  5.   selector: 'app-navbar',
  6.   templateUrl: './navbar.component.html',
  7.   styleUrls: ['./navbar.component.css']
  8. })
  9. export class NavbarComponent implements OnInit {
  10.  
  11.   constructor(private userService: UserService) {      
  12.   }
  13.  
  14.   ngOnInit() {
  15.   }
  16.  
  17.   get User(){
  18.         return this.userService;
  19.   }
  20.  
  21. }
  22.