The better practice is to call $apply only when you know you are outside of a $digest loop, such as inside the directive link function. That is, ...
確定! 回上一頁