diff --git a/bower.json b/bower.json index 7b6df33..016bc21 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-templating-router", - "version": "0.5.0", + "version": "0.5.1", "description": "An implementation of the RouteLoader interface for use with the router module. Also contains a custom element that allows the templating engine to display the current route.", "keywords": [ "aurelia", diff --git a/dist/amd/router-view.js b/dist/amd/router-view.js index a7f75f4..43c615e 100644 --- a/dist/amd/router-view.js +++ b/dist/amd/router-view.js @@ -71,7 +71,7 @@ define(["exports", "aurelia-dependency-injection", "aurelia-templating", "aureli throw new Error("The view must be a string or an instance of ViewStrategy."); } - CustomElement.anonymous(this.container, viewModel, viewStrategy).then(function (behaviorType) { + return CustomElement.anonymous(this.container, viewModel, viewStrategy).then(function (behaviorType) { return behaviorType.create(childContainer, { executionContext: viewModel, suppressBind: true }); }); }; diff --git a/dist/commonjs/router-view.js b/dist/commonjs/router-view.js index 10cea48..310af01 100644 --- a/dist/commonjs/router-view.js +++ b/dist/commonjs/router-view.js @@ -70,7 +70,7 @@ var RouterView = (function () { throw new Error("The view must be a string or an instance of ViewStrategy."); } - CustomElement.anonymous(this.container, viewModel, viewStrategy).then(function (behaviorType) { + return CustomElement.anonymous(this.container, viewModel, viewStrategy).then(function (behaviorType) { return behaviorType.create(childContainer, { executionContext: viewModel, suppressBind: true }); }); }; diff --git a/dist/es6/router-view.js b/dist/es6/router-view.js index a1c5110..46ea2ab 100644 --- a/dist/es6/router-view.js +++ b/dist/es6/router-view.js @@ -65,7 +65,7 @@ export class RouterView { throw new Error('The view must be a string or an instance of ViewStrategy.'); } - CustomElement.anonymous(this.container, viewModel, viewStrategy).then(behaviorType => { + return CustomElement.anonymous(this.container, viewModel, viewStrategy).then(behaviorType => { return behaviorType.create(childContainer, {executionContext:viewModel, suppressBind:true}); }); } diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 26edc0c..c0fb6c6 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,11 @@ +### 0.5.1 (2014-12-22) + + +#### Bug Fixes + +* **router-view:** ensure getComponent returns promise ([8cec29a1](http://github.com/aurelia/templating-router/commit/8cec29a17b5b896cae8aa93842216437ff88f6b0)) + + ## 0.5.0 (2014-12-22) diff --git a/package.json b/package.json index 2f766c8..dd324c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-templating-router", - "version": "0.5.0", + "version": "0.5.1", "description": "An implementation of the RouteLoader interface for use with the router module. Also contains a custom element that allows the templating engine to display the current route.", "keywords": [ "aurelia",