Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.loading = true; // init as true just before $http call
- $http({
- method: 'POST',
- url: "URL",
- data: "myParam"
- }).then(function successCallback(response) {
- // after getting response set the loading variable to false
- this.loading = false;
- });
- <div ng-if="!ctrl.loading>
- //your original html content here
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement