【发布时间】:2016-11-18 12:52:18
【问题描述】:
我在 angularjs 应用程序文件中进行了计算,基本上每次更改 HTMl 表单中的值时,计算结果都会反映在 span 块reloader_block 中,
我想要做的是我想添加动画,以便整个跨度块应该闪烁并且用户应该注意到它。
例如,span 块应该在几毫秒内淡出和淡入。
我该怎么做?
$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>
【问题讨论】:
-
在一个简单的 $watch 中调用 refreshDiv 怎么样?