我在angularjs應用程序文件中進行了計算,基本上每當我更改HTMl表單中的值時,發生的情況都是如此,計算結果反映在跨度塊reloader_block
中,如何在angularjs中刷新div
我想要做的是我想添加動畫,以便整個跨度塊應該閃爍,用戶應該注意到它。
像例如,跨度塊應該在幾毫秒內淡出和淡入。
我該怎麼做?
$scope.refreshDiv = function() {
//here i want to refresh the span block `reloader_block`
};
HTML:
<span class="block reloader_block">
Here is how you can Walden this product:
You will have to share it with <B>{{sharable_with}}</b> users. Each one of you will have to give us <b>{{walden_costs}}</b>/-
Each of you will get to use the product for <b>{{usage}}</b> days after every <b>{{cycle}}</b> days
after <b>{{product_warranty}}</b> year(s) we will auction the product at <b>30%</b> of MRP.
{{priceful}}
</span>
怎麼樣調用refreshDiv成一個簡單的$看? – chf