html - Angularjs and populating fields/placeholder blinking -
i know angularjs populates fields via model.
html loads first:
<input type="text" data-ng-model="values.myvalue" placeholder="trololol">
then javascript:
$scope.values = {}; $scope.values.myvalue = 'herro value';
this works, there blink second placeholder displays updates value 'herro value'.
i'm wondering if there way can put value straight html without screwing angularjs model? example.
<input type="text" value="herro value" data-ng-model="values.myvalue" placeholder="trololol">
then when javascript loads, model takes over. safe way of getting rid of blink on page load?
the ng-cloak attribute should prevent this:
Comments
Post a Comment