Components: Md-Input Readme

Created on 5 Jan 2017  路  6Comments  路  Source: angular/components

Bug, feature request, or proposal:

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

What is the expected behavior?

What is the current behavior?

What are the steps to reproduce?

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: http://plnkr.co/edit/o077B6uEiiIgkC0S06dd

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, browsers are affected?

Is there anything else we should know?

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.

<md-input-container>
  <input md-input placeholder="Name">
</md-input-container>

All 6 comments

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

Was this page helpful?
0 / 5 - 0 ratings