ionic3-components icon indicating copy to clipboard operation
ionic3-components copied to clipboard

Enhance project structure with angular modules

Open yannbf opened this issue 8 years ago • 1 comments

I'm submitting a ... (check one with "x")

[ ] bug report [ ] feature request [x] support request

Important information: The project needs to be better organized in terms of code architecture. It should follow good angular practices so it would have a module for components, another for pipes, etc.

Any discussion is greatly appreciated, this way the project could be used as reference for good practices in Angular, but right now it needs to be better worked on.

yannbf avatar Oct 09 '17 03:10 yannbf

Yeah!! Use these components directly into a ionic app structure folder is awful. Each component should be a npm package in node_modules folder, following Feature module angular practice. You can use ng-packagr for this. See this guide: Building an Angular 4 Component Library with the Angular CLI and ng-packagr

Ps: Be careful with AOT problems dherges/ng-packagr#344. Like this repo use Angular 5+, I think that doesn't happens.

mfdeveloper avatar Apr 24 '18 12:04 mfdeveloper