摘要: 刚刚看见一篇文章讲述track by的功能的,大致记录如下: 1. ng-repeat="friend in friends" 一般不使用track by的情况下,每次刷新DOM,ngRepeat都会删除原有的元素DOM重新生成DOM结构。 2.ng-repeat="friend in friend 阅读全文
posted @ 2016-07-18 19:55 echo2016 阅读(338) 评论(0) 推荐(0) 编辑
摘要: ngModelCtrl.$render用来渲染$viewValue值到UI界面中 Updating $viewValue when the UI changes: 整个流程如图: 阅读全文
posted @ 2016-07-18 16:02 echo2016 阅读(322) 评论(0) 推荐(0) 编辑
摘要: Formatters Definition Array of functions to execute, as a pipeline, whenever the model value changes. Each function is called, in turn, passing the va 阅读全文
posted @ 2016-07-18 15:23 echo2016 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 在type="password"之前加一行<input type="password" name="old_password" style="display: none">;name属性是一定要加的,并且要和显示的密码框一样! 示例如下: 阅读全文
posted @ 2016-07-18 14:05 echo2016 阅读(1585) 评论(0) 推荐(0) 编辑