Skip to content

Commit

Permalink
fix(Router) enable complex route config settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jdanyow committed Mar 17, 2015
1 parent 7990143 commit ae90ce2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/router.js
Expand Up @@ -175,7 +175,10 @@ export class Router {
this.recognizer.add([{path:config.route, handler: config}]);

if (config.route) {
var withChild = JSON.parse(JSON.stringify(config));
var withChild, settings = config.settings;
delete config.settings;
withChild = JSON.parse(JSON.stringify(config));
config.settings = settings;
withChild.route += "/*childRoute";
withChild.hasChildRouter = true;
this.childRecognizer.add([{
Expand Down

0 comments on commit ae90ce2

Please sign in to comment.