1. ng generate service hero
  1. import { Injectable } from '@angular/core';
  2. @Injectable({
  3. providedIn: 'root',
  4. })
  5. export class HeroService {
  6. constructor() { }
  7. }
文档更新时间: 2019-04-30 14:44