Skip to content

Instantly share code, notes, and snippets.

@tcarlsen
Created June 29, 2015 13:34
Show Gist options
  • Save tcarlsen/8521f16a809a3275e6af to your computer and use it in GitHub Desktop.
Save tcarlsen/8521f16a809a3275e6af to your computer and use it in GitHub Desktop.
import {Component, View} from 'angular2/angular2';
import {Http, httpInjectables} from 'angular2/http';
@Component({
selector: 'home',
appInjector: [
httpInjectables
]
})
@View({
templateUrl: 'templates/home.html'
})
class Home {
events: string;
constructor(http: Http) {
//logic
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment