create ts file in angular cli code example
Example 1: angular generate component
ng g component componentname
Example 2: ng service generate
content_copy1
import { Hero } from './hero';
import { HEROES } from './mock-heroes';
ng g component componentname
content_copy1
import { Hero } from './hero';
import { HEROES } from './mock-heroes';