Skip to content

Generate a Component

Abhay Chawla edited this page Jul 27, 2018 · 1 revision

Follow the following steps to generate a new component:

  1. Open the terminal and run the command: ng generate component component-name

  2. Navigate to the required module module-name.module.ts:

  • import the component import { ComponentName } from './component-path.component'

  • declare the module in declarations array @NgModule({ declarations: [ ComponentName ]})

Demo Credentials:

Username: mifos

Password: password

Clone this wiki locally