Skip to content

Instantly share code, notes, and snippets.

@IEvangelist
Created January 12, 2016 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IEvangelist/8130a550a30e7181c217 to your computer and use it in GitHub Desktop.
Save IEvangelist/8130a550a30e7181c217 to your computer and use it in GitHub Desktop.
import {Component, OnInit} from "angular2/core";
@Component({
selector: "mvc",
templateUrl: "/partial/message"
})
export class MvcComponent implements OnInit {
message: string;
constructor() { }
ngOnInit() {
this.message = "The '/partial/message' path was used as the Angular2 'templateUrl'. However, this routes through the 'PartialController' hitting the 'Message' action and is served after standard MVC pre-processing. Likewise, 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