AngularJS - How do I change the State from Inside the Controller
I am new to AngularJS and would like to know how I change the State from within the Controller. For example, I typically change the state on a button click: <input type="submit" class="btn btn-lg btn-primary btn-block" value="Log In" ui-sref="main.navigation"/> So on Submit of the button, my page will change to the navigation page. This works fine, but what if I want to do some logic in my controller first, and then based off the results, I would want to change to a specific page. How do I do this from within the controller, versus from a button click. Here is my modules.js in case you are