4 function ParseQueryString () {
6 location.search.substr(1).split("&").forEach(function(item) {
7 var k = item.split("=")[0], v = decodeURIComponent(item.split("=")[1]); (k in qd) ? qd[k].push(v) : qd[k] = [v];
12 angular.module('@@APPNAME@@', [ // Warning: Appname should fit with gulpfile.js & index.html
18 'foundation.dynamicRouting',
19 'foundation.dynamicRouting.animations',
21 // external components
24 // Application Components
35 .value ('urlquery', ParseQueryString())
40 config.$inject = ['$urlRouterProvider', '$locationProvider'];
42 function config($urlProvider, $locationProvider, ConfigApp) {
43 $urlProvider.otherwise('/home');
45 // https://docs.angularjs.org/error/$location/nobase
46 $locationProvider.html5Mode(true).hashPrefix('!');
51 FastClick.attach(document.body);
54 console.log ("opa=@@APPNAME@@ Loaded");