$ npm i -S @angular/material
src/app/app.module.ts
import { MaterialModule } from '@angular/material';
// other imports
@NgModule({
imports: [MaterialModule.forRoot()],
...
})
export class PizzaPartyAppModule { }
PizzaPartyAppModule is an optional name ?
Yes, PizzaPartyAppModule could be any arbitrary name, more or less. By convention, I think the primary module of any Angular (2 and forward) app is called AppModule. It's just the name of the class.
https://material.angular.io/guide/getting-started
https://material2-app.firebaseapp.com/
https://github.com/angular/material2/issues/2386
$ npm i -S @angular/material
src/app/app.module.ts
# step 2
import { MaterialModule } from '@angular/material';
# step 3
@NgModule({
imports: [
MaterialModule.forRoot(),
],
})
I have to say that the offfical tutorial/guide is little useful for me, just confused me!
Anyway, thanks for your reply!
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
ng2 material design
https://material.angular.io/guide/getting-started
https://material2-app.firebaseapp.com/
https://github.com/angular/material2/issues/2386
step1:
Import MaterialModule
I have to say that the offfical tutorial/guide is little useful for me, just confused me!
Anyway, thanks for your reply!