-
Notifications
You must be signed in to change notification settings - Fork 787
Generate a Module
Abhay Chawla edited this page Jul 27, 2018
·
3 revisions
Follow the following steps to generate a new module with routing: (for a new section of the application)
-
Open the terminal and run the command:
ng generate module module-name --routing -
Navigate to the project's app.module.ts:
-
import the module
import { ModuleName } from './module-path.module' -
declare the module in imports array making sure to mention it above the AppRoutingModule
@NgModule({ imports: [ ModuleName ]})
- Import the CoreModule and declare it in the imports array of the newly created module to ensure that AngularMaterial components and FlexLayout directives can be used within the components:
import { CoreModule } from '../core/core.module';
@NgModule({ imports: [ CoreModule ]})
Stable Community App Demo: https://demo.mifos.io/
Latest Community App Development: https://dev.mifos.io/
Latest Community App Staging: https://staging.mifos.io/
Community App Documentation Manual: https://mifosforge.jira.com/wiki/spaces/docs/pages/52035622/User+Manual
API Documentation: https://demo.mifos.io/api-docs/apiLive.htm
Demo Credentials:
Username: mifos
Password: password