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.

app.js 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. 'use strict';
  2. /* App Module */
  3. angular.module('app', [
  4. 'ui.bootstrap',
  5. 'ui.router',
  6. 'LocalStorageModule',
  7. 'ngMaterial',
  8. 'dialogs.main',
  9. 'luticateAuth',
  10. 'luticateUtils',
  11. 'appSdk'
  12. ])
  13. .config(['$stateProvider', '$urlRouterProvider',
  14. function($stateProvider, $urlRouterProvider) {
  15. $stateProvider.state('home', {
  16. url:'/',
  17. title: "Home",
  18. reloadOnSearch: false,
  19. templateUrl:'views/home.html',
  20. controller:'HomeController'
  21. });
  22. $urlRouterProvider.otherwise('/');
  23. }])
  24. .directive('dateNow', ['$filter', function($filter) {
  25. return {
  26. link: function( $scope, $element, $attrs) {
  27. $element.text($filter('date')(new Date(), $attrs.dateNow));
  28. }
  29. };
  30. }])
  31. .run(['$rootScope', '$state',
  32. function ($rootScope, $state) {
  33. $rootScope.$on('$stateChangeSuccess', function (event, current, previous) {
  34. $rootScope.title = current.title + " - App";
  35. });
  36. }]);