2016-06-01 51 views
0

我正在嘗試獲取angualar.js中的一些請求屬性。 我能夠使用request.getAttribute()在jsp方法內獲取相同的屬性。request.getAttributes()in angular js

我無法想象如何獲取相同的內部角度。你能不能讓我知道request.getAttribute在angular中的等價函數。

當用戶授權我們將用戶詳細信息設置爲屬性時,我們需要獲取相同的角度。

回答

1

$location.search()將返回鍵值對的對象,與查詢字符串相同。

www.google.com/webmasters/tools/removals?pli=1?

$location.search() // {"pli": 1} 
$location.search().pli // 1 
+0

將$ location.search工作的發佈請求?我從Apache Web服務器設置標題。 – Harry