這裏我打電話給我的網址(與澳鵬我的詳細信息和會話ID等),如波紋管,
"http://localhost:7070/dais-portal/#/SocialLandingPage/"+userID+"/"+entityId+"/"+channelID+"/"+sessionID
JS文件
app.config(function($stateProvider, $urlRouterProvider, $locationProvider) {
/*
* $urlRouterProvider.otherwise('/');
*/
$stateProvider
.state('SocialLandingPage', {
url: '/SocialLandingPage/:userID/:entityId/:channelID/:sessionID',
views: {
'content-page': {
templateUrl: 'loginPage/view/dais-dummy-landing-page.html'
}
}
})
}
僞着陸page.html中,這裏被稱爲一個控制器。並獲取所有值(如用戶ID,entityId,channelID和會話ID)
從該控制器。 我越來越喜歡這個,
$scope.userID = $stateParams.userID;
$scope.entityId = $stateParams.entityId;
$scope.channelID = $stateParams.channelID;
$scope.sessionID = $stateParams.sessionID;
請添加要在其中存儲令牌一些代碼和詳細信息,以及你使用的是什麼後臺? – Sravan
你的問題不清楚。請以更好的方式解釋。 – undefined
只要console.log(window.location),看看你是否有東西。 –