Use the ES6 spread operator ... to clean up and maintain your @NgModule declaration with ease.
Jump down to the files if you want to skip the explanation.
- Under your Ionic project's
src/directory, add the following directories as needed.pages/for Ionic's Page @Components, generated with$ ionic g page <PageName>providers/for Angular's @Injectable services, generated with$ ionic g provider