javascript - AngularJS ng-view clears out on before new content is load -


i'm new angularjs , made app changes page without reloading it. i'm requesting page i'm checking if request made ajax or not, if i'm returning needed part angular, if else give browser entire page layout. means, if visitor enters page entering address browsers address bar should see page without angular loading it.

so problem is: when open page entering address shows content, need, - angular catches route .when('/some/page') , loads it, , it, clears content in ng-view (for half of second or less) , shows same content, loaded angular. short content "blinking" , unneeded request irritates me, , don't know should searching for.

is possible prevent angular loading page if visitor in it? or change content clearing behaviour (but have idea takes time add new content dom).


Comments