I'm developping a cordova mobile app. How can I redirect the user after Oauth login? What is (in cordova) the equivalent of the $state.go used in Ionic? This is my app.js
var app = angular.module('app', ['ui.router','ngRoute', 'LoginController', 'LogoutController']).config(function ($stateProvider) {
$stateProvider
.state('app', {
url: '/app',
templateUrl: 'index.html',
controller: 'fbLoginController'
})
.state('app.logout', {
url: '/logout',
templateUrl: 'views/connect.html',
controller: 'fbLogoutController'
});
});
Thanks!
答案 0 :(得分:1)
$ state.go实际上是一个Angularjs对象。
如果您想使用此类功能,可以将Angularjs放入您的cordova项目中。