Implementing md-input by following readme:
<md-input-container>
<input mdInput>
</md-input-container>
I get the following error:
"md-input-container must contain an md-input directive. Did you forget to add md-input to the native input or textarea element?"
This is fixed by replacing mdInput with md-input. Is there a typo in the readme????
Using Angular Material 2.0.0-beta.1
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: http://plnkr.co/edit/o077B6uEiiIgkC0S06dd
I think this is a difference in master vs beta.1 branch. The change from md-input to mdInput landed in master recently, and the readme has been update as well. https://material.angular.io/ should be the docs for the most recently released version, AFAIK.
Noticed this issue as well.
It looks like the selector was updated 3 days ago to match the directive formatting convention (mdInput instead of md-input). Until this change is pushed to NPM, just revert to the old selector.
<md-input-container>
<input md-input placeholder="Name">
</md-input-container>
@arciisine, @ChuckkNorris thanks for the help!
Thanks @ChuckkNorris,
I lost a few hours on that...
So I suppose the https://material.angular.io/ documentation doesn't get updated in real time, if not what is the best place to get latest doc?
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
Noticed this issue as well.
It looks like the selector was updated 3 days ago to match the directive formatting convention (mdInput instead of md-input). Until this change is pushed to NPM, just revert to the old selector.