UNPKG

kongadmin

Version:
30 lines (25 loc) 769 B
/** * This file contains all necessary Angular controller definitions for 'frontend.admin.login-history' module. * * Note that this file should only contain controllers and nothing else. */ (function() { 'use strict'; angular.module('frontend.info') .controller('InfoController', [ '$scope', '$log', '$state','InfoService', function controller($scope, $log, $state,InfoService) { function _getInfo() { InfoService.getInfo() .then(function(response){ $scope.info = response.data }) } _getInfo() $scope.$on('user.node.updated',function(node){ _getInfo() }) } ]) ; }());