我想通過get_meta_tags獲取url信息,雖然laravel並希望顯示在我的angularjs應用程序。 但問題是在如何在angularJs中顯示json響應數據?
Array
(
[title] => Mercy Badshah Full HD
[description] => mercy badsah
[keywords] => mercy, badshah new song, badshah songs, badshah, badshah mercy
[theme-color] => #e62117
[twitter:card] => player
[twitter:site] => @youtube
[twitter:url] => https://www.youtube.com/watch?v=QyoXZ2YgnME
[twitter:title] => Mercy Badshah Full HD
[twitter:description] => mercy badsah
[twitter:image] => https://i.ytimg.com/vi/QyoXZ2YgnME/maxresdefault.jpg
[twitter:app:name:iphone] => YouTube
[twitter:app:id:iphone] => 544007664
[twitter:app:name:ipad] => YouTube
[twitter:app:id:ipad] => 544007664
[twitter:app:url:iphone] => vnd.youtube://www.youtube.com/watch?v=QyoXZ2YgnME&feature=applinks
[twitter:app:url:ipad] => vnd.youtube://www.youtube.com/watch?v=QyoXZ2YgnME&feature=applinks
[twitter:app:name:googleplay] => YouTube
[twitter:app:id:googleplay] => com.google.android.youtube
[twitter:app:url:googleplay] => https://www.youtube.com/watch?v=QyoXZ2YgnME
[twitter:player] => https://www.youtube.com/embed/QyoXZ2YgnME
[twitter:player:width] => 1280
[twitter:player:height] => 720
[attribution] => SonyBMG
)
這種形式迴應回報。數據僅顯示標題,說明,關鍵字和主題顏色。當我把其他參數等{{urlDetails.twitter:image}}
顯示錯誤
Syntax Error: Token ':' is an unexpected token at column 19 of the expression [urlDetails.twitter:image!=''] starting at [:image!=]. please help me out for this error. thanks in advance.
非常感謝你tavnab – Ashok