![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Angularjs
文章平均质量分 57
csdn_lihe
这个作者很懒,什么都没留下…
展开
-
angularjs 弹出框 $modal
$modal只有一个方法:open,该方法的属性有:templateUrl:模态窗口的地址template:用于显示html标签scope:一个作用域为模态的内容使用(事实上,$modal会创建一个当前作用域的子作用域)默认为$rootScopecontroller:为$modal指定的控制器,初始化$scope,该控制器可用$modalInstance注入转载 2015-11-04 09:50:48 · 54700 阅读 · 2 评论 -
angularjs 如何处理checkbox
直接上程序代码:index.html <input type="checkbox" ng-checked="isChecked(color.id)" ng-click="updateSelection($event,color.id)" />{{color.name}} Selected : {{selected原创 2015-11-11 16:19:18 · 16773 阅读 · 1 评论 -
Angualrjs插值字符串$interpolate
在AngularJS中,我们的确有手动运行模板编译的能力。例如,插值允许基于作用域上的某个条件实时更新文本字符串。 要在字符串模板中做插值操作,需要在你的对象中注入$interpolate服务。在下面的例子中,我们将会将它注入到一个控制器中:angular.module('myApp',[]) .controller('myController',function($转载 2015-11-14 11:10:50 · 4033 阅读 · 0 评论 -
AngularJS 自定义表单验证$parsers
当用户同控制器进行交互,并且ngModelController中的$setViewValue()方法被调用时,$parsers数组中的函数会以流水线的形式被逐个调用。第一个$parse被调用后,执行结果会传递给第二个$parse,以此类推。 这些函数可以对输入值进行转换,或者通过$setValidity()函数设置表单的合法性。 使用$parsers数组是实现自转载 2015-11-15 14:56:54 · 2913 阅读 · 0 评论