Docs: angular/material wrong import
Please provide us with the following information:
https://github.com/angular/angular-cli/wiki/stories-include-angular-material
The angular MaterialModule import wrong . There is no forRoot() for MaterialModule in the latest release. Only MaterialModule . Please correct it
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Versions.
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here:
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
The log given by the failure.
Normally this include a stack trace and some more information.
Mention any other details that might be useful.
Thanks! We'll be in touch soon.
try this:
import {MaterialRootModule} from "@angular/material";
@NgModule({
...
imports:[MaterialRootModule]
)}
It's a wrong entry in Docs.
#5140 Posted a PR to fix this.
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.