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.

home.controller.js 634B

123456789101112131415161718
  1. angular.module('app')
  2. .controller('HomeController', ['$scope', '$state', '$mdDialog', 'articlesBusiness', 'luBusyBusiness', 'AppUtilsBusiness',
  3. function($scope, $state, $mdDialog, articlesBusiness, luBusyBusiness, AppUtilsBusiness) {
  4. 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. }]);