This is my personal template for scaffolding an Ionic Angular application.
The official blank starter from the Ionic Team uses the traditional Angular modules, the Default change detection strategy and the specific files for templates and styles.
I have modified it in order to use Angular feature that I prefer:
- Standalone Components
- OnPush change detection strategy
- Inline templates and styles
While this template only provides a very basic application to use a starting point, I like to follow these guidelines:
- Smart/Dumb Components
- Coding reactively
- Nx-ish code structure
I believe that this approach makes the Angular application more scalable, easier to develop and less error prone.
$ npm install
$ ionic serve
$ ionic build --prod
# unit tests
$ npm run test