![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
angularJs
Billy-Chen
全栈追随者
展开
-
angualrJs中$interpolate的运用
html部分: input type="email" ng-model="to" placeholder="请输入正确邮箱!"> textarea ng-model="emailBody">textarea> pre>{{previewText}}pre> javascript部分: $scope.$watch('emailBody',function(body)原创 2017-11-28 17:18:15 · 220 阅读 · 0 评论 -
angular中自定义过滤器
html部分: body ng-controller="chenController"> {{ filterValue | firstUppercase}} body> javascript部分: var myApp = angular.module('chen',[]); myApp.controller('chenController',['$scope',functio原创 2017-11-29 11:13:35 · 403 阅读 · 0 评论