These are chat archives for AngularClass/angular2-webpack-starter

4th
Sep 2016
Clayton K. N. Passos
@netstart
Sep 04 2016 16:44
How can i use the seed to share components between multi aplications? It's possible?
Clayton K. N. Passos
@netstart
Sep 04 2016 17:44

What is the best practice to share code between projects?
How can I share components between projects?

Below dashboard example should be use components of the eye project, and nose project.

src
├─ eye
│ ├── components
│ │ ├── eye.component.html
│ │ ├── eye.component.ts
│ │ ├── eye.component.css
├─ nose
│ ├── components
│ │ ├── nose.component.html
│ │ ├── nose.component.ts
│ │ ├── nose.component.css
├─ dashboard
│ ├── components
│ │ ├── dashboard.component.html
│ │ ├── dashboard.component.ts
│ │ ├── dashboard.component.css

Other example, to ilustrate

In the structure below, commonaplication need share eye.component and nose.component with bodyaplication and dashboardaplication.
src
├── commonaplication
│ │ ├── components
│ │ ├── eye.component.ts
│ │ ├── nose.component.ts
├── bodyaplication
│ ├── components
│ │ ├── head.component.ts
├── dashboardaplication
│ ├── components
│ │ ├── dashboard.component.ts