angular.module('app') .controller('articlesController', ['$scope', '$stateParams', 'articlesBusiness', 'listControllerBuilder', function($scope, $stateParams, articlesBusiness, listControllerBuilder) { $scope.business = articlesBusiness; $scope.itemType = 'articles'; $scope.defaultOrder = 'id'; listControllerBuilder.create($scope, $stateParams); $scope.getAddItem = function() { return { title: $scope.query.filter }; }; $scope.init(); }]);