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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -