Created
January 12, 2016 19:09
-
-
Save IEvangelist/8130a550a30e7181c217 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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