angularjs--Filter
1<! DOCTYPE html>234<meta charset= "UTF-8" >5<meta name= "viewport" content= "Width=device-width, initial-scale=1, maximum-scale=1, User-scalable=no" >6<title>index</title>7<link href= "{$Think. Const. Cssurl}bootstrap.min.css "rel=" stylesheet "type=" Text/css "/>8<script src= "{$Think. Const. Js}jquery.min.js "type=" Text/javascript "></script>9<script src= "{$Think. Const. Js}bootstrap.min.js "type=" Text/javascript "></script>Ten<script src= "{$Think. Const. Js}angular.min.js "type=" Text/javascript "></script> One<link href= "{$Think. Const. Cssurl}home/index.css "rel=" stylesheet "type=" Text/css "/> A -<body ng-app= "MyApp" ng-controller= "Myctrl" > -<divclass= "Container" > the<divclass= "Form-group" > -<label for= "" > Input currency:</label> -<input type= "Text"class= "Form-control" ng-model= "Ccy"/> -</div> +<divclass= "Well" > Currency:{{ccy|currency}}</div> - +<divclass= "Form-group" > A<label for= "" > Enter user:</label> at<input type= "Text"class= "Form-control" ng-model= "name"/> -</div> -<divclass= "Well" > User:{{name|uppercase}}</div> - -<divclass= "Form-group" > -<input type= "Text"class= "Form-control" ng-model= "Find"/> in</div> -<divclass= "List-group" > to<a href= "#"class= "List-group-item" ng-repeat= "row in Rows|filter:find|orderby: ' Age '" >{{row.name}}</a> +</div> - the$Think. Const. Homeimg}/01.png "/> *</div> $</body>Panax Notoginseng<script> -App = Angular.module ("MyApp",[]); theApp.controller ("Myctrl",function($scope){ + $scope. rows=[ A{"Name": "Tom", "Age": "10"}, the{"Name": "Jack", "Age": "102"}, +{' name ': ' Make ', ' age ': ' 101 '}, -{"Name": "Mill", "Age": "102"}, ${"Name": "Till", "age": "100"}, ${"Name": "Mac", "Age": "1"}, - ]; - }); the</script> -
angularjs--Filter