angular ng generate service in folder 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';
Example 4: ng g component
ng g class <name> [options]