Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
add scope watch to navigation list to make sure list changes when isA…
Browse files Browse the repository at this point in the history
…dmin changes
  • Loading branch information
Kyle Linden committed Nov 22, 2016
1 parent 49d824c commit d90cffa
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ module.exports = function(ngModule) {
'ngInject';
'use strict';

$scope.sections = navService.getSections();
$scope.$watch(() => {
return navService.getSections();
}, (newVal, oldVal) => {
$scope.sections = navService.getSections();
});

var vm = this;
vm.stateService = stateService;
Expand Down

0 comments on commit d90cffa

Please sign in to comment.