Skip to content

Instantly share code, notes, and snippets.

@vladima
Created May 5, 2015 14:33
Show Gist options
  • Save vladima/eb85232f255e30a60133 to your computer and use it in GitHub Desktop.
Save vladima/eb85232f255e30a60133 to your computer and use it in GitHub Desktop.
@Component({
selector: 'todo-app',
injectables: [
AngularFire,
bind(Firebase).toValue(new Firebase('https://webapi.firebaseio-demo.com/test'))
]})
@View({
templateUrl: 'todo.html',
directives: [For]
})
class TodoApp {
...
}
TodoApp = __decorate([
annotations_1.Component({
selector: 'todo-app',
injectables: [
angularfire_1.AngularFire,
di_1.bind(Firebase).toValue(new Firebase('https://webapi.firebaseio-demo.com/test'))
] }),
annotations_1.View({
templateUrl: 'todo.html',
directives: [angular2_1.For]
}),
__metadata('design:paramtypes', [angularfire_1.AngularFire])
], TodoApp);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment