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

View Still Not Refreshing

$
0
0

@Harilall wrote:

This is still breaking my balls, I have a view that needs to be navigated to on an ng-click so I call my small function in the html like this

<button ng-click="goToView('home')">(Cancel) Back to home</button>

My simple function is as follows

$scope.goToView = function(view){
	//$window.location.href = view;
	//$window.location.reload(view);

	$state.go(view, {}, {reload:true});
}

Now from what I read this simple line should do the trick, you will notice the $window bits of code commented out that works but it reloads the entire file and basically all the scripts again which is really slow. Someone please help a brother out

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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