September 2017
Intermediate to advanced
450 pages
11h 24m
English
Let's perform the following steps to create a new current user service:
export class User { constructor( public firstName: string = "", public lastName: string = "", public email: string = "" ) {} getName() { return this.firstName + ' ' + this.lastName; }}
import { Injectable } from '@angular/core';import {User} from "./user";@Injectable()export class CurrentUserService { user: User; getUser() { ...Read now
Unlock full access