您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }]);