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