从一个angular度的应用程序redirect到另一个离子

我目前正在将angularjs应用程序转换为离子,angularjs项目包含两个应用程序1.login应用程序和2.实际的应用程序。

在运行离子服务器时,首先加载login应用程序(localhost / login),一旦用户input凭证,用户将被redirect到具有不同url(localhost / app)的实际应用程序。

在离子是相同的情况下,如果是,任何人都可以请告诉如何做到这一点?

你可以使用$stateProvider$urlRouterProvider来实现它

检查这个https://scotch.io/tutorials/angular-routing-using-ui-router教程

 .config(function($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise('/home'); $stateProvider // HOME STATES AND NESTED VIEWS ======================================== .state('home', { url: '/home', templateUrl: 'partial-home.html' }) // ABOUT PAGE AND MULTIPLE NAMED VIEWS ================================= .state('about', { // we'll get to this in a bit }); }); 

https://www.thepolyglotdeveloper.com/2014/11/using-ui-router-navigate-ionicframework/

冷藏这个以上的教程