md-input with [(ngModel)] removes 'md-prefix' and 'md-suffix' content.
See original GitHub issueSource HTML:
<md-input placeholder="amount" [(ngModel)]="account.userName"> <span md-prefix>$ </span> <span md-suffix>.00</span> </md-input>
In rendered html prefix/suffix element’s content are emtpy:
...<div _ngcontent-ega-7="" class="md-input-prefix"></div>...
versions:
- angular2: beta17
- material2: alpha-3
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to put icon in placeholder in Angular Material?
An alternative is to use the mdPrefix or mdSuffix directives to your md-icon tag. That will display your icon on the left or...
Read more >Directives - - - md-input-container - AngularJS Material
Input and textarea elements will not behave properly unless the md-input-container parent is provided.
Read more >Veritical scroll bar not showing | General Discussion | Wijmo 5
I am using wijmo5 angular2 component and I can't get the vertical scroll bar to show up in my grid. The grid is...
Read more >Input · Angular Material 2 - kyleledbetter
The divider (line under the <md-input> content) color can be changed by using the dividerColor attribute. A value of primary is the default...
Read more >NgModel - Angular
Tracks the name bound to the directive. If a parent form exists, it uses this name as a key to retrieve this control's...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In angular rc-1 and material2 alpha-4 this works normally
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.