Hi,
I just npm installed material. In my package.json this version is stated: "@angular/material": "^2.0.0-alpha.11-3"
When I try using the md-input-container
as it is described here (https://github.com/angular/material2/blob/master/src/lib/input/README.md), I get this error message:
zone.js:388Unhandled Promise rejection: Template parse errors:
'md-input-container' is not a known element
However, when I use the deprecated md-input
it works.
So what's wrong? Do I need to use another version of @angular/material?
The 2.0.0-alpha.11-3 release does not include md-input-container. The docs has been updated for upcoming release. Use md-input/md-textarea until next release.
Ok, thanks for the quick answer.
How are we supposed to use this library if the documentation can't be trusted?
When viewing the documentation select the tag of the version you are interested in (the dropdown in top left corner of the code tabs contents)
Also when updating from an older version review the change log for breaking changes and new/changed features.
https://github.com/angular/material2/blob/master/CHANGELOG.md
Also please remember these are Alpha releases
when we started using md-input-container,when we do have a latest release.any idea
@ashishsober I am using
I solved the same problem. I just imported "MdInputModule" from "@angular/material"
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._
Most helpful comment
How are we supposed to use this library if the documentation can't be trusted?