阅读背景:

循环遍历AngularJS中的2个不同对象

来源:互联网 

I have the following controller:

我有以下控制器:

app.controller('MainController', ['$scope', function($scope) {


$scope.taskCategories = {
    categories: [
        'work',
        'chores',
        'learning'
    ]
};

$scope.tasklist = {
    tasks: [{
            title: 'Email Gregory',
            category: 'work'
        }, {
            title: 'Clean the Kitchen',
            category: 'chores'
        }, {
            title: 'AngularJS',
            category: 'learning'
        }, {
            title: 'Hose Car',
            category: 'chores'
        }, {
            title: 'Email Jethro',
            category: 'work'
        }
    ]
};
}]);
a



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: