Description
I'm submitting a ... (check one with "x")
[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)
Current behavior
After downloading the seed it worked fine. When installed material design beta8 version I started getting this error
Expected behavior
Runtime error as below screenshot.
Minimal reproduction of the problem with instructions
Import material2 design in home.module.ts to get this error.
What is the motivation / use case for changing the behavior?
To make use of material2 design with angular-seed.
Please tell us about your environment:
Mac, npm, Webstorm.
- Angular Seed Version:
aaaaf75
angular-seed (downloaded today 23-jul-2017)
Last commit: facd075 / facd075
Added the following on top of existing angular-seed code. No change to the code done yet.
app.module.ts
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { FormsModule, ReactiveFormsModule } from '@angular/forms';
............
............
home.component.html
<md-card> <md-slide-toggle class="example-margin"> Slide me! </md-slide-toggle> </md-card>
............
............
home.module.ts
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { MdSliderModule, MdSlideToggleModule } from '@angular/material';
............
............
`@NgModule({
imports: [ HomeRoutingModule, SharedModule,
BrowserModule,
BrowserAnimationsModule,
FormsModule,
//MdNativeDateModule,
ReactiveFormsModule,
],
exports: [HomeComponent, MdSliderModule, MdSlideToggleModule]
bootstrap: [HomeComponent],
providers: [NameListService]
})
export class HomeModule { }
platformBrowserDynamic().bootstrapModule(HomeModule);`