angularangular-cli-v6

difference between ng generate application <app-name> and ng new <app-new>


I know the difference that ng generate application <app-name> works only in angular app folder. but what are the other differences.


Solution

  • ng new NAME create a new workspace with a default application

    ng g application NAME create a new application in an existing workspace

    The official documentation does not explain this in full details. So I'll recommend dig out some blogs posts that make introductory post for it. Such as the following:

    Angular 6 Workspace