I'm writing currently two new websites. Both share a lot of functionality. Is it possible with angular to write little components/modules and to reuse them in other apps? What would be the project structure for it or can I use the structure of the ng-cli?
Asked
Active
Viewed 735 times
1 Answers
2
Yeah I guess it would be possible as you get a lot of angular2 plugins where you npm install something and include it in your own project. If I was looking so have some sort shared components project I would have look at something like this and copy their project structure and how they have it set up. https://github.com/scttcper/ngx-toastr. That is just one example and there are lot of other third party plugins which you can use for inspiration.

Marcos Dimitrio
- 6,651
- 5
- 38
- 62

rtn
- 2,012
- 4
- 21
- 39