Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e90f600

Browse files
Narretzpetebacondarwin
authored andcommitted
chore(docs-app): show loader when loading view / partial
Closes #14385 PR (#15280)
1 parent 49de157 commit e90f600

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/app/src/docs.js

+7
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ angular.module('DocsController', [])
2323
$scope.$on('$includeContentLoaded', function() {
2424
var pagePath = $scope.currentPage ? $scope.currentPage.path : $location.path();
2525
$window._gaq.push(['_trackPageview', pagePath]);
26+
$scope.loading = false;
27+
});
28+
29+
$scope.$on('$includeContentError', function() {
30+
$scope.loading = false;
2631
});
2732

2833
$scope.$watch(function docsPathWatch() {return $location.path(); }, function docsPathWatchAction(path) {
@@ -31,6 +36,8 @@ angular.module('DocsController', [])
3136

3237
var currentPage = $scope.currentPage = NG_PAGES[path];
3338

39+
$scope.loading = true;
40+
3441
if (currentPage) {
3542
$scope.partialPath = 'partials/' + path + '.html';
3643
$scope.currentArea = NG_NAVIGATION[currentPage.area];

0 commit comments

Comments
 (0)