Material-input does not render scope value set in controller
Scope values set in a controller do not render anymore when they are used in a <material-input> control. This is since the recent changes in textField.js where the $formatter function is replaced by a $viewChangeListeners and a $render function (diff).
A demo of this issue can be found in the following plunkr. The expected result is that the word World is in the input element. Tested in Firefox 32 and Chromium 37.
+1 (*1,000,000)
Also, the test should be extended to check on input attr(value). This is kind of a huge regression :/ The demo includes ng-model=data.description, but in the demo controller, $scope.data = {}; is set.
+1
+1. Reverting the lines in the diff fixes it.
+1
Attribute "value" is needed in order to let this working properly
<material-input ng-model="name" value="{{name}}"></material-input>
but it's look duplicate.
+1
+1
It should be noted that current the
Other textfield (input) components will be added in the near future.
Demo, css, and Sass mixins for Floating Label TextFields updated:
- now has parity with Material Design specifications: Text Fields with Floating Labels.
- Demo now shows light and dark themes
Fixed in SHA 63eeb4