Skip to content

Instantly share code, notes, and snippets.

@IEvangelist
Created January 12, 2016 18:47
Show Gist options
  • Save IEvangelist/7e7bce34b2d16557b686 to your computer and use it in GitHub Desktop.
Save IEvangelist/7e7bce34b2d16557b686 to your computer and use it in GitHub Desktop.
import {Component, OnInit} from "angular2/core";
@Component({
selector: "static",
templateUrl: "app/components/static.html"
})
export class StaticComponent implements OnInit {
message: string;
constructor() { }
ngOnInit() {
this.message = "The 'static.html' was used as the Angular2 'templateUrl'. There is a 'message' property bound to the <blockqoute> element."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment