摘要:
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { Product1Component } from './product1/pr... 阅读全文
摘要:
import { Injectable } from '@angular/core'; @Injectable() export class LoggerServiceService { constructor() { } log(message: string) { console.log(message); } } import { Injectable } ... 阅读全文
摘要:
import { Injectable } from '@angular/core'; import { ProductServiceService, Product } from './product-service.service'; @Injectable() export class AnotherProductServiceService implements ProductServ... 阅读全文
摘要:
import { Injectable } from '@angular/core'; @Injectable() export class ProductServiceService { constructor() { } getProduct(): Product { return new Product(1, "iPhone7"); } } export cl... 阅读全文
摘要:
阅读全文