How to add class to to angular application using angular-cli command: 'ng generate class' without receiving error -


i'm referenceing https://www.sitepoint.com/ultimate-angular-cli-reference/, says, to add class called 'userprofile', run:

$ ng generate class user-profile

when run command,

installing class   unable find apps in `angular-cli.json` 

based on this source code got error because .angular-cli.json not containg apps field. generate new sample-app , compare its.angular-cli.json one.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -