components icon indicating copy to clipboard operation
components copied to clipboard

md-input-container is not working

Open ush189 opened this issue 9 years ago • 8 comments

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?

ush189 avatar Dec 17 '16 14:12 ush189

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.

Uniqen avatar Dec 17 '16 14:12 Uniqen

Ok, thanks for the quick answer.

ush189 avatar Dec 17 '16 18:12 ush189

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

starksds avatar Dec 19 '16 18:12 starksds

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

stp-c-oliver avatar Dec 19 '16 19:12 stp-c-oliver

when we started using md-input-container,when we do have a latest release.any idea

ashishsober avatar Jan 10 '17 10:01 ashishsober

@ashishsober I am using <md-input-container tag for angular material 2 beta release. But same error repeat. How can i start .Net core app

ponmani avatar Apr 05 '17 13:04 ponmani

I solved the same problem. I just imported "MdInputModule" from "@angular/material"

Jacooscript avatar Apr 19 '17 17:04 Jacooscript

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.