2-6.Angular-filterフィルタ

803 ワード

ろ過フィルター




    
    Title






{{stu | orderBy:'age' : false}}

  • {{value}}
//1. var app = angular.module('app', []); //2. app.controller('xmgController', ['$scope', function ($scope) { $scope.course = ['html', 'css', 'js']; $scope.stu = [ {name:'zs', age:18}, {name:'ls', age:22}, {name:'yj', age:11}, {name:'sk', age:33} ]; }]); //3. ng-app="app" //4. ng-controller="xmgController"