Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Unable to stop Sidemenu controller from invoking

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>