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

home.controller.js 648B

123456789101112131415161718
  1. angular.module('app')
  2. .controller('HomeController', ['$scope', '$state', '$mdDialog', 'articlesBusiness', 'luBusyBusiness', 'AppUtilsBusiness',
  3. function($scope, $state, $mdDialog, articlesBusiness, luBusyBusiness, AppUtilsBusiness) {
  4. $scope.busy = luBusyBusiness.reset();
  5. $scope.item = null;
  6. $scope.appUtils = AppUtilsBusiness;
  7. $scope.load = function()
  8. {
  9. articlesBusiness.getMultiple('id', 'type: home', 0, 1, 'home.home').then(function(data)
  10. {
  11. $scope.item = data.data[0];
  12. }, function (error) {});
  13. };
  14. $scope.load();
  15. }]);