Create a Page
Create New Page Component
To add new page in your app, You have to create a new Page Component.
To create a Angular component run the following command in the command prompt on Windows PC or terminal on Mac.
Above cammand will create a component on given path. It will create four files.
For example we create a component 'home' then following files will be generated:
home.component.html
home.component.scss
home.component.spec.ts
home.component.ts
We can skip spec file add 3. home.component.spec.ts file using --skipTests=true
For more angular command click here.
Last updated