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('/sample-home');
46 // https://docs.angularjs.org/error/$location/nobase
47 $locationProvider.html5Mode(true).hashPrefix('!');
52 FastClick.attach(document.body);
55 console.log ("opa=@@APPNAME@@ Loaded");