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 (k in qd) ? qd[k].push(v) : 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
37 .value ('urlquery', ParseQueryString())
42 config.$inject = ['$urlRouterProvider', '$locationProvider'];
44 function config($urlProvider, $locationProvider, ConfigApp) {
45 $urlProvider.otherwise('/home');
47 // https://docs.angularjs.org/error/$location/nobase
48 $locationProvider.html5Mode(true).hashPrefix('!');
53 FastClick.attach(document.body);
56 console.log ("opa=@@APPNAME@@ Loaded");