javascript - AngularJS event which is triggered after all scopes are applied -
i have angularjs application loading data rest service.
now happens brackets {{}} used access values scope rendered , after replaced real values. d add ng-switch top div of application , check whether global var (e.g. pageloaded (true|false)) true or false. if true, d load normal page, if false, d print "loading...". problem how can notified (e.g. through angular event) if data ready, , added scope? because after dlike set pageloaded true.
is there way in generic way? don't implement per page.
thanks lot in advance.
greets marc
you should use ng-cloak - http://docs.angularjs.org/api/ng.directive:ngcloak
for showing loading panel, can like:
<div ng-hide="true">loading...</div> so when angular finishes loading, ng-hide occur , hide loading panel.
Comments
Post a Comment