question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

md-input with [(ngModel)] removes 'md-prefix' and 'md-suffix' content.

See original GitHub issue

Source HTML: <md-input placeholder="amount" [(ngModel)]="account.userName"> <span md-prefix>$&nbsp;</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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
davidgabrichidzecommented, May 4, 2016

In angular rc-1 and material2 alpha-4 this works normally

0reactions
angular-automatic-lock-bot[bot]commented, Sep 4, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found