2015-11-02 62 views
0

我有以下路徑:在Angular JS中不工作路線?

.when('/profile/:page/:account', { 

templateUrl: function (params) { 

var template = '/personal.html'; 
return template; 
}, 
controller: 'EditController' 
}) 

我的URL鏈接是:

site.com/profile#/privacy/1 
+2

那麼你的問題陳述是什麼? – Rebel

+2

你的網址應該是'site.com/profile#/ 1/1'這種格式。 –

+0

'''sign'之後的角度開始路由 - 所以我認爲,當它看起來像'site.com#/ profile/privacy/1'(或類似的) – rzysia

回答

0

你使用了兩個參數,但是鏈接只有一個PARAMS值,所以您的網址應該是這個樣子低於甲酸鹽

site.com/profile#/1/1