This workspace was generated with Angular CLI version 7.2.3.
The goal of this repo is to demonstrate an Angular workspace with a library and a consumer. It is used as demo for this stackoverflow question.
After calling npm install run npm run build:lib and after that npm run start.
Do following steps to create a workspace structure like this.
- Create the workspace with following command:
ng new my-workspace --create-application=false- Navigate into the newly created workspace:
cd my-workspace- Generate the library:
ng generate library my-lib- Generate the application:
ng generate application my-app- Add
MyLibModuleto theapp.module.tsof the application. - Update package.json with
build:libandbuild:appcommands.