While TypeScript can detect compile errors for *.ts files, the question arises if these benefits can be extended to AngularJS views/templates. Consider a scenario where the code snippet below is present:
<div ng-controller="HomeController as home">
{{home.property1}}
</div>
If a HomeController class is defined, it would be convenient to receive a compilation error if "property1" is not declared within this class. Is there a way to achieve this?