0
我已經包括在頁面下面的腳本:如何從外部jQuery腳本中訪問angularJS模型數據?
<script>
$(document).ready(function() {
$(".fancy-class").chatter({
hostname: 'http://www.domain.com',
group: 'moustache',
brand: '{{brand.name}}'
});
});
</script>
而且我想品牌被設置爲一個品牌,我知道的是存儲在我的角度模式。
我該怎麼做?
我認爲brand.name是錯誤的。只需刪除引號並嘗試 –