4 function ParseQueryString () {
6 location.search.substr(1).split("&").forEach(function(item) {
7 var k = item.split("=")[0];
8 var v = decodeURIComponent(item.split("=")[1]);
9 if (k in qd) qd[k].push(v); else qd[k] = [v];
14 angular.module('@@APPNAME@@', [ // Warning: Appname should fit with gulpfile.js & index.html
20 'foundation.dynamicRouting',
21 'foundation.dynamicRouting.animations',
23 // external components
26 // Application Components
36 .value ('urlquery', ParseQueryString())
41 config.$inject = ['$urlRouterProvider', '$locationProvider'];
43 function config($urlProvider, $locationProvider, AppConfig) {
44 $urlProvider.otherwise('/dashboard');
46 // https://docs.angularjs.org/error/$location/nobase
47 $locationProvider.html5Mode(true).hashPrefix('!');
52 FastClick.attach(document.body);
55 // Fondation-app.template is not included correctly by gulp
56 // Include here missing templates from foundation-apps/dist/js/foundation-apps-templates.js
57 angular.module('foundation').run(['$templateCache', function($templateCache) {
58 $templateCache.put('components/modal/modal.html',
60 ' class="modal-overlay"\n' +
61 ' ng-click="hideOverlay()">\n' +
64 ' ng-click="$event.stopPropagation();"\n' +
71 console.log ("opa=@@APPNAME@@ Loaded");