@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