This is my angular
<script>
(function(){
var app=angular.module("my_post_module",[]);
app.controller("post_controller",function($http,$scope){
$scope.getPost=function(id)
{
if(id>0)
{
$http.post("GetPostController","{\"id\":\""+id+"\"}").then(function(response){
$scope.adminPost=response.data.adminpostdata;
},function(error){
});
}
}
});
})();
And My ng-repeat
<div>
<div ng-repeat="items in adminPost">
<div>
<h1>{{items.name}}</h1>
</div>
<div>
<p>{{items.body}}</p>
</div>
<div>
<h5>{{items.work}}</h5>
</div>
<div>
<image ng-src="GetPostImage?requestFileIndex=1&requestId={{items.postId}}" style="width:50%;height:30%;"/>
<image ng-src="GetPostImage?requestFileIndex=2&requestId={{items.postId}}" style="width:50%;height:30%;"/>
<video width="320" height="240" controls>
<source ng-src="GetPostImage?requestFileIndex=3&requestId={{items.postId}}">
</video>
</div>
</div>
</div>
The problem is that whenever I refresh the page or first load the page for few second it is appearing like {{items.name}}
{{items.works}}
and so on and then it's automatically disappear , it is working properly but it is very annoying to see this whenever I refresh the page or when I load the page for the very first time.
I am trying to use ng-show
but it is also not working.