dc1d489239c007446cf7aa0acfdde3a754ab1c48
[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     'UploadFile',
22     'LinkButton',
23     'ModalNotification'
24   ])
25     .config(config)
26     .run(run)
27   ;
28
29   config.$inject = ['$urlRouterProvider', '$locationProvider'];
30
31   function config($urlProvider, $locationProvider) {
32     $urlProvider.otherwise('/home');
33
34     // https://docs.angularjs.org/error/$location/nobase
35     $locationProvider.html5Mode(true).hashPrefix('!');
36     
37   }
38
39   function run() {
40     FastClick.attach(document.body);
41   }
42
43 console.log ("@@APPNAME@@ Loaded");
44 })();