摘要:
For the $watch in last article, we watch 'user.password', actually it is a string.If you watch 'user', this object and we do something like:function W... 阅读全文
摘要:
/** * Created by Answer1215 on 11/13/2014. */function MainCtrl($scope){ function isLongEnough (pwd) { return pwd.length > 4; } functio... 阅读全文