-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Integration with AngularMaterial2
Amal Shehu edited this page Nov 22, 2016
·
23 revisions
npm install --save @angular/material
this.NPM_DEPENDENCIES = [
...this.NPM_DEPENDENCIES,
/* Select a pre-built Material theme */
{src: '@angular/material/core/theming/prebuilt/indigo-pink.css', inject: true}
];
this.addPackageBundles({
name:'@angular/material',
path:'node_modules/@angular/material/material.umd.js',
packageMeta:{
main: 'index.js',
defaultExtension: 'js'
}
});
import { MaterialModule } from '@angular/material';
// other imports
@NgModule({
imports: [ MaterialModule.forRoot() ],
...
})
export class FooAppModule { }