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
31 config.$inject = ['$urlRouterProvider', '$locationProvider'];
33 console.log ("***location=" + window.location + " search" + window.search);
35 function config($urlProvider, $locationProvider, AppConfig) {
36 $urlProvider.otherwise('/dashboard');
38 // https://docs.angularjs.org/error/$location/nobase
39 $locationProvider.html5Mode(true).hashPrefix('!');
44 FastClick.attach(document.body);
47 // Fondation-app.template is not included correctly by gulp
48 // Include here missing templates from foundation-apps/dist/js/foundation-apps-templates.js
49 angular.module('foundation').run(['$templateCache', function($templateCache) {
50 $templateCache.put('components/modal/modal.html',
52 ' class="modal-overlay"\n' +
53 ' ng-click="hideOverlay()">\n' +
56 ' ng-click="$event.stopPropagation();"\n' +
63 console.log ("opa=@@APPNAME@@ Loaded");