You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

articles.controller.js 610B

123456789101112131415161718
  1. angular.module('app')
  2. .controller('articlesController', ['$scope', '$stateParams', 'articlesBusiness', 'listControllerBuilder',
  3. function($scope, $stateParams, articlesBusiness, listControllerBuilder) {
  4. $scope.business = articlesBusiness;
  5. $scope.itemType = 'articles';
  6. $scope.defaultOrder = 'id';
  7. listControllerBuilder.create($scope, $stateParams);
  8. $scope.getAddItem = function()
  9. {
  10. return {
  11. title: $scope.query.filter
  12. };
  13. };
  14. $scope.init();
  15. }]);