"use strict";

angular.module(
  'arethusa', [
    'mm.foundation',
    'ngRoute',
    'arethusa.core',
    'arethusa.morph',
    'arethusa.hist'
  ],
  function($routeProvider) {
    $routeProvider.when('/', {
      controller: 'MainCtrl',
      templateUrl: 'templates/main2.html',
      resolve: {
        loadConfiguration: function($q, $http, $route, configurator) {
          console.log($route.current.params.conf);
          return $http({
            method: 'GET',
            url: $route.current.params.conf || './static/configuration_default.json'
          }).then(function(result) {
            configurator.configuration = result.data;
          });
        }
      }
    }
  );
});

@@ -252,34 +252,44 @@
 late
-Url: 'templates/main2.html
+: '%3Cdiv ng-include=%22template%22%3E%3C/div%3E
 ',%0A 
@@ -379,59 +379,8 @@
 ) %7B%0A
-          console.log($route.current.params.conf);%0A
     

Make main template really configurable again