72e8123f5759fc678d37aa047f57baf4aa472d52
[src/app-framework-demo.git] / afb-client / app / Frontend / app.js
1 (function() {
2   'use strict';
3
4   angular.module('@@APPNAME@@', [ // Warning: Appname should fit with gulpfile.js & index.html
5     'ui.router',
6     'ngAnimate',
7
8     //foundation
9     'foundation',
10     'foundation.dynamicRouting',
11     'foundation.dynamicRouting.animations',
12     
13     // external components
14     'ui-notification',
15     
16     // Application Components
17     'ConfigApp',
18     'JQueryEmu',
19     'HomeModule',
20     'SampleModule',
21     'UploadFiles',
22     'LinkButton',
23     'TokenRefresh',
24     'RangeSlider',
25     'ModalNotification'
26   ])
27     .config(config)
28     .run(run)
29   ;
30
31   config.$inject = ['$urlRouterProvider', '$locationProvider'];
32   
33   console.log ("***location=" + window.location + " search" + window.search);
34
35   function config($urlProvider, $locationProvider, ConfigApp) {
36     $urlProvider.otherwise('/home');
37
38     // https://docs.angularjs.org/error/$location/nobase
39     $locationProvider.html5Mode(true).hashPrefix('!');
40     
41   }
42
43   function run() {
44     FastClick.attach(document.body);
45   }
46
47 console.log ("opa=@@APPNAME@@ Loaded");
48 })();