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:

https://docs.angularjs.org/api/ng/directive/ngcloak


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -