angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Docs: angular/material wrong import

Open harilal opened this issue 9 years ago • 4 comments

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 --version and 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.

harilal avatar Feb 28 '17 05:02 harilal

try this: import {MaterialRootModule} from "@angular/material";

@NgModule({
...
imports:[MaterialRootModule]
)}

yairtawil avatar Feb 28 '17 06:02 yairtawil

It's a wrong entry in Docs.

harilal avatar Feb 28 '17 09:02 harilal

#5140 Posted a PR to fix this.

RicardoVaranda avatar Mar 01 '17 09:03 RicardoVaranda

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.