사용자 정의 필터

Window {external: Object, chrome: Object, document: document, angular: Object, app: Object…}
index.html:19 [122525.54545744, 1, 2]


  
    
    angular
    
    
    
      var app=angular.module('test',[]);
      app.controller('con1',function($scope,$http){
          $scope.a='asdFsfsXW'
          $scope.b='SWEeFAcFFS'
          $scope.c=122525.54545744

      })
      app.filter('todo',function(){
        return function(){
          console.log(this)
          console.log(arguments)
        }
      })
    
  
  
    {{a|uppercase}}
    

{{b|lowercase}}

{{a|limitTo:2}} {{c|number:4}} // 3 , {{c|todo:1:2}} //Window {external: Object, chrome: Object, document: document, angular: Object, app: Object…} index.html:19 [122525.54545744, 1, 2]

좋은 웹페이지 즐겨찾기