I know that TypeScript can detect compile errors for *.ts files.
However, what about getting these benefits in AngularJS views/templates? For example, if I have a code like:
<div ng-controller="HomeController as home">
{{home.property1}}
</div>
And I have a HomeController class defined, then I'd like to receive a compile error if "property1" isn't defined for HomeController class.
Is anything like that possible?
Is anything like that possible?
Possible : Yes. You will need to create your own HTML Parser and then integrate it with the TypeScript compiler (possibly using the TypeScript language service).
Existing : No.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With