Skip to content

Commit

Permalink
feat(router-view): update to new fluent metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jan 22, 2015
1 parent 9813b21 commit 3335a30
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/router-view.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import {Container} from 'aurelia-dependency-injection';
import {CustomElement, ViewSlot, ViewStrategy, UseView, NoView} from 'aurelia-templating';
import {ViewSlot, ViewStrategy} from 'aurelia-templating';
import {Router} from 'aurelia-router';
import {Origin} from 'aurelia-metadata';
import {Metadata, Origin} from 'aurelia-metadata';

export class RouterView {
static metadata(){
return [
new CustomElement('router-view'),
new NoView()
];
}

static metadata(){ return Metadata.customElement('router-view').noView(); }
static inject() { return [Element,Container,ViewSlot,Router]; }
constructor(element, container, viewSlot, router) {
this.element = element;
Expand Down

0 comments on commit 3335a30

Please sign in to comment.