npm install -g @angular/cli
ng new AddAppName
cd AddAppNameLocate and open AddAppName using code editor such as Visual Studio and open src/app/app.component.ts
ng serve --open
export class AppComponent {
title = 'My First Angular App!';
}
Between { } after title = 'My First Angular App!'; you can add new 'key' and 'value' example such as
export class AppComponent {
title = 'My First Angular App!';
credit = 'my name is muhaza';
}
ADD MATERIAL DESIGN COMPONENT
To start adding material design must install the material design npm first
npm install --save @angular/material @angular/cdkLocate and open AddAppName using code editor such as Visual Studio and open src/app/app.module.ts
and now we can start adding component on design
https://material.angular.io/components