2015-09-16 46 views
0

獲取數據我有一個數組使用angularJS

[ 
    { 
     "Bookmarked":false, 
     "CategoryID":26, 
     "CreatedBy_Profile": { 
      "ID":68,"Name":"René Bang Hansen", 
      "Picture": { 
       "MD5HASH":"ILBZ0Zo7cWHlN3wASB9LHg==", 
       "URI":"https:\/\/cetest5.blob.core.windows.net\/images\/23166e0c-1441-47b6-ad83-f66f9d540c89" 
      } 
     }, 
     "Created_Timestamp": "2015-09-16T10:55:27.2270000","Current_Location":"" 
    } 
] 

我怎樣才能得到圖片的URI。 我通過使用此代碼獲取CategoryID。

<ul ng-repeat="cat in catadata"> 
    <li>    
     {{cat.CategoryID}} 
    </li> 
</ul> 
+0

你試過{{cat.CreatedBy_Profile.URI}} – Ayoub

回答

2

我相信下面的代碼將有助於你得到的圖片URI -

{{cat.CreatedBy_Profile.Picture.URI}}