0.0.12 • Published 6 years ago
mdm-lib v0.0.12
#1 Install all dependencies:
"@angular/common": "^6.0.0-rc.0 || ^6.0.0",
"@angular/core": "^6.0.0-rc.0 || ^6.0.0",
"@angular/platform-browser": "^6.0.0-rc.0 || ^6.0.0",
"@angular/animations": "^6.0.0-rc.0 || ^6.0.0",
"@angular/cdk": "^6.0.1",
"@angular/material": "^6.0.1",
"@angular/material-moment-adapter": "^6.0.1",
"@angular/forms": "^6.0.0-rc.0 || ^6.0.0",
"moment": "^2.22.1",
"ngx-bootstrap": "^3.0.1"
#2 Import all modules:
imports: [
CommonModule,
BrowserAnimationsModule,
MdmSortablePagerGridModule,
CdkTableModule,
MatTableModule,
MatPaginatorModule,
MatSortModule,
MatIconModule
FormsModule,
ReactiveFormsModule,
TimepickerModule.forRoot(),
MdmTimePickerModule,
MatButtonModule,
OverlayModule,
MatFormFieldModule,
MatInputModule,
],
#3 Import material styles in your style.scss:
@import '@angular/material/prebuilt-themes/deeppurple-amber.css';
@import 'https://fonts.googleapis.com/icon?family=Material+Icons'; // if this doesn't work download locally.
If your default style is not scss already, run below command:
ng set defaults.styleExt scss
Rename from styles.css to styles.scss and change the reference in angular.json