Permalink
Browse files

fix(RouterView, RouteHref): delay element injection

  • Loading branch information...
bigopon committed Jul 26, 2018
1 parent e83bd1b commit a465e6e43c08533e7c9e45f557581fba1e11bcdc
Showing with 10 additions and 2 deletions.
  1. +5 −1 src/route-href.js
  2. +5 −1 src/router-view.js
@@ -10,8 +10,12 @@ const logger = LogManager.getLogger('route-href');
@bindable({name: 'route', changeHandler: 'processChange', primaryProperty: true})
@bindable({name: 'params', changeHandler: 'processChange'})
@bindable({name: 'attribute', defaultValue: 'href'})
@inject(Router, DOM.Element)
export class RouteHref {
static inject() {
return [Router, DOM.Element];
}
constructor(router, element) {
this.router = router;
this.element = element;
@@ -7,8 +7,12 @@ import {DOM} from 'aurelia-pal';
@customElement('router-view')
@noView
@inject(DOM.Element, Container, ViewSlot, Router, ViewLocator, CompositionTransaction, CompositionEngine)
export class RouterView {
static inject() {
return [DOM.Element, Container, ViewSlot, Router, ViewLocator, CompositionTransaction, CompositionEngine];
}
@bindable swapOrder;
@bindable layoutView;
@bindable layoutViewModel;

0 comments on commit a465e6e

Please sign in to comment.