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.

articlesedit.controller.js 649B

12345678910111213141516171819
  1. angular.module('app')
  2. .controller('articlesEditController', ['$scope', '$stateParams', 'articlesBusiness', 'editControllerBuilder',
  3. function ($scope, $stateParams, articlesBusiness, editControllerBuilder) {
  4. $scope.business = articlesBusiness;
  5. $scope.itemType = 'articles';
  6. editControllerBuilder.create($scope, $stateParams);
  7. $scope.addField = function()
  8. {
  9. var field = $scope.business.initFieldDbo({});
  10. $scope.item.fields.push(field);
  11. };
  12. $scope.setupExitConfirm();
  13. $scope.init($stateParams);
  14. }]);