ng create service command code example
Example 1: ng generate service
// in terminal
// add Service to (new) Service dir
ng g s Services/<serviceName>
Example 2: ng g
ng g directive <name> [options]
Example 3: ng service generate
content_copy1
import { Hero } from './hero';
import { HEROES } from './mock-heroes';