4 angular.module('@@APPNAME@@', [ // Warning: Appname should fit with gulpfile.js & index.html
10 'foundation.dynamicRouting',
11 'foundation.dynamicRouting.animations',
13 // external components
16 // Application Components
30 config.$inject = ['$urlRouterProvider', '$locationProvider'];
32 console.log ("***location=" + window.location + " search" + window.search);
34 function config($urlProvider, $locationProvider, AppConfig) {
35 $urlProvider.otherwise('/dashboard');
37 // https://docs.angularjs.org/error/$location/nobase
38 $locationProvider.html5Mode(true).hashPrefix('!');
43 FastClick.attach(document.body);
46 // Fondation-app.template is not included correctly by gulp
47 // Include here missing templates from foundation-apps/dist/js/foundation-apps-templates.js
48 angular.module('foundation').run(['$templateCache', function($templateCache) {
49 $templateCache.put('components/modal/modal.html',
51 ' class="modal-overlay"\n' +
52 ' ng-click="hideOverlay()">\n' +
55 ' ng-click="$event.stopPropagation();"\n' +
62 console.log ("opa=@@APPNAME@@ Loaded");