Components: md-input-container is not working

Created on 17 Dec 2016  路  8Comments  路  Source: angular/components

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?

Most helpful comment

How are we supposed to use this library if the documentation can't be trusted?

All 8 comments

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

constantinlucian picture constantinlucian  路  3Comments

3mp3ri0r picture 3mp3ri0r  路  3Comments

theunreal picture theunreal  路  3Comments

dzrust picture dzrust  路  3Comments

vitaly-t picture vitaly-t  路  3Comments