Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create new angular component command

ng generate component newComponentName
//or
ng g c newComponentName

//Angular > 8
ng g c your-component-name --skipTests=true
ng g c folder-name/your-component-name --skipTests=true
//Angular < 8
ng g c your-component-name --spec=false
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #angular #component #command
ADD COMMENT
Topic
Name
7+1 =