I want to replace my in-code template with html file. How can I do it?
Greeting.annotations = [
As part of the
ComponentAnnotation there is a property
templateUrl which you can point at an HTML file.
This is the same as angular 1.x directive definition object
You can find more information about component's properties here
NOTE - docs are still a work in progress