@2909sanjay wrote:
Hello team,
I am trying to put the localstorage after language selection page(first page)
and then I declare a few variables in menu ctrl:
$scope.vmodel = {}; if(localStorage.getItem('appJson')){ var appJson = JSON.parse(localStorage.getItem('appJson')); $scope.vmodel.menuItems = appJson.findBy('pageKey', 'slide-menu').items; }I am unable to get localstorage since the controller runs before I can select language and assign json file to localstorage, is there a way to stop menu controller to be invoked, or get invoked only after my home page gets displayed.
Posts: 1
Participants: 1