File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ angular.module('DocsController', [])
23
23
$scope . $on ( '$includeContentLoaded' , function ( ) {
24
24
var pagePath = $scope . currentPage ? $scope . currentPage . path : $location . path ( ) ;
25
25
$window . _gaq . push ( [ '_trackPageview' , pagePath ] ) ;
26
+ $scope . loading = false ;
27
+ } ) ;
28
+
29
+ $scope . $on ( '$includeContentError' , function ( ) {
30
+ $scope . loading = false ;
26
31
} ) ;
27
32
28
33
$scope . $watch ( function docsPathWatch ( ) { return $location . path ( ) ; } , function docsPathWatchAction ( path ) {
@@ -31,6 +36,8 @@ angular.module('DocsController', [])
31
36
32
37
var currentPage = $scope . currentPage = NG_PAGES [ path ] ;
33
38
39
+ $scope . loading = true ;
40
+
34
41
if ( currentPage ) {
35
42
$scope . partialPath = 'partials/' + path + '.html' ;
36
43
$scope . currentArea = NG_NAVIGATION [ currentPage . area ] ;
You can’t perform that action at this time.
0 commit comments