Hi i’m new at ionic platform and having trouble with use $state.go(’’)
I try to do a example ionic project with loginpage. I have a controller for control user is authotanticeted.
var app = angular.module('pushClient', ['ionic', 'ui.router']);
app.config(function ($stateProvider, $urlRouterProvider) {
$stateProvider.state('notificationList', {
url: '/',
templateUrl: 'notifications.html',
controller: 'notificationCtrl',
});
// ..... more routing
$urlRouterProvider.otherwise("/");
});
app.controller('notificationCtrl', function ($scope, $state) {
$state.go('signin');
$scope.notificationList = notifications;
});
it’s working but on debug mode ionic bundle throws ‘Exception: Cannot read property ‘options’ of null’.
I can continue wtih this error but i think its not healty. Any help would be appreciated.