Components: what's this mean ? "export class PizzaPartyAppModule { }"

Created on 23 Dec 2016  路  4Comments  路  Source: angular/components

export class PizzaPartyAppModule { }

$ npm i -S @angular/material

Import the Angular Material NgModule

src/app/app.module.ts

import { MaterialModule } from '@angular/material';
// other imports 
@NgModule({
  imports: [MaterialModule.forRoot()],
  ...
})
export class PizzaPartyAppModule { }

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:

$ npm i -S @angular/material

Import MaterialModule

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!

All 4 comments

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.

ng2 material design

https://material.angular.io/guide/getting-started
https://material2-app.firebaseapp.com/
https://github.com/angular/material2/issues/2386

step1:

$ npm i -S @angular/material

Import MaterialModule

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

julianobrasil picture julianobrasil  路  3Comments

michaelb-01 picture michaelb-01  路  3Comments

LoganDupont picture LoganDupont  路  3Comments

shlomiassaf picture shlomiassaf  路  3Comments

kara picture kara  路  3Comments