Using $state.go to navigate between views doesn't work, $location.path does

In your module definition you need to pass ‘ui.router’ as a dependency in order to use the Angular-UI-Router in your project:

E.g. angular.module('my_app', ['ionic', 'ui.router'])

Also make sure you inject $state into your Controller so it’s available for you to use there.

2 Likes