0

I have simple test page

<head>
     ........
     <script src="~/lib/jquery/dist/jquery.js"></script>
     <script src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
     <script src="~/lib/angular/angular.js"></script>
</head>
<body>
     .......
     <label>Name:</label>
     <input type="text" ng-model="name" placeholder="Enter name">
     <h1>Welcome {{name}}!</h1>
</body>

When page loads first time I see {{name}} on page

enter image description here

After a half of a second it disappears

enter image description here

that makes quite annoying effect of blinking. What am I missing and how can I avoid it?

Vitalii
  • 10,091
  • 18
  • 83
  • 151
  • 1
    You could vanish this behavior via using `ngClock` directive or `ng-bind` directive, check out [this answer](http://stackoverflow.com/a/14076004/2435473) – Pankaj Parkar Nov 23 '16 at 14:39
  • This has been asked and answered many times on this site. Search for ngCloak – jbrown Nov 23 '16 at 14:40

1 Answers1

2

You can use ngCloak to prevent this behavior.