Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple application under single project in Angular 6

How to create multiple application under single project in Angular 6? In new angular.json file, there is no "app":[] array, where before we used to create/add multiple applications manually. Also there is no proper documentation I found at this stage, which elaborate how to create multiple application in single project. Any help would be appreciated. Thank you.

like image 952
BhargavG Avatar asked Jun 30 '18 12:06

BhargavG


1 Answers

Like @JB Nizet said... you can use generate application (https://github.com/angular/angular-cli/wiki/generate-application)

ng generate application <application-name>

to generate an application in the projects folder, and then serve it using

ng serve --project <application-name>

Similarly, you can create component libraries using ng generate library (https://github.com/angular/angular-cli/wiki/generate-library)

ng generate library <library-name>

For common components used between projects. Both of which get installed into the /projects folder unless you changed the projects root when doing ng new.

like image 180
martzcodes Avatar answered Oct 13 '22 00:10

martzcodes