Source: components/inteligencia/inteligencia.js

  1. /**
  2. * @ngdoc inteligencia
  3. * @name Inteligencia
  4. * @module s4c.components.inteligencia.Inteligencia
  5. *
  6. * @description Configura a rota para a tela de inteligência
  7. *
  8. *
  9. */
  10. (function () {
  11. 'use strict';
  12. angular.module('s4CApp')
  13. .config(['$stateProvider', function ($stateProvider) {
  14. $stateProvider
  15. .state('inteligencia', {
  16. url: '/inteligencia',
  17. templateUrl: 'app/components/inteligencia/inteligencia.html',
  18. controller: 'InteligenciaCtrl',
  19. resolve: {
  20. 'UserInfo': function (AuthService) {
  21. return AuthService.getUserInfo();
  22. }
  23. }
  24. });
  25. }]);
  26. }());