angular 1.5 beta link

NgModelController provides API for the ngModel directive. The controller contains services for data-binding, validation, CSS updates, and value formatting and parsing. It purposefully does not contain any logic which deals with DOM rendering or listening to DOM events. Such DOM related logic should be provided by other directives which make use of NgModelController for data-binding to control elements. Angular provides this DOM logic for most input elements. At the end of this page you can find a custom control example that uses ngModelController to bind to contenteditable elements.

NgModelController 为NgModel指令提供了API。控制器服务有data-binding,验证,css更新和value 格式化和解析。主要目的是不涉及Dom 渲染和监听Dom事件。Dom的关联逻辑应该由指令提供,内部由NgModelController负责data-binding。Angular 提供了Dom的逻辑大部分是为了Input element。剩下没必要翻译

$render();

渲染Dom!

视图需要更新时调用。$rollbackViewValue()被调用。

NgModel不做了深监听,只有$modelValue和$viewValue的值不一样时才会执行当之前的value有变化。如果$modelValue和$viewValue是对象将不会调用

$isEmpty(value);

这被调用当我们需要确定是否输入的值是空的。

required 指令将调用这功能,过滤undefined''null or NaN.

最新文章

  1. jquery获取table的行数、列数
  2. OSG中的HUD
  3. 原生js获取Html元素的实际宽度高度
  4. 关于 tomcat nio connector, servlet 3.0 async, spring mvc async 的关系
  5. Find命令搜索过去一段时间内修改过的文件
  6. 嵌套回调异步与$.Deferred异步
  7. Uber新功能:隐藏司机乘客们的手机号码
  8. python实现应用程序在右键菜单中添加打开方式
  9. 局域网内IP冲突怎么办
  10. Linux下使用gcc编程初体验
  11. IDEA设置显示中文文档API方法说明
  12. swust oj 1068
  13. topcoder srm 550 div1
  14. SVN四部曲之SVN设置详解深入
  15. C#高级编程第10版 note
  16. Spring9 : Autowire(自动装配)机制
  17. smarty模板(转载)
  18. week13《java程序设计》第13次作业总结
  19. CCF 201409-4 最优配餐
  20. MVC异步消息推送机制

热门文章

  1. Sed替换 内容带反斜杠(/)
  2. Angular - - form.FormController、ngModel.NgModelController
  3. 插入排序法-java案例详解
  4. js框架Modernizr是什么东西? 他是前端开发HTML5和CSS3的强有力前端js检测类库
  5. 解决xtrabackup command not found no mysqld group 问题
  6. 在ASP.NET MVC3项目中,自定义404错误页面
  7. 给Pomelo的聊天室添加time的RPC调用
  8. Servlet 获取IllegelStateException
  9. oracle求时间差的常用函数
  10. node源码详解(四) —— js代码如何调用C++的函数