GProst GProst -4 years ago 210
TypeScript Question

WebStorm: Angular template type checking

Is there a way in WebStorm to allow TypeScript type checking for Angular component bindings and other expressions?

I just think it would be great if I could set

@Input()
properties types in
component.ts
files and editor would warn me if a particular binding type is wrong in a particular template.

Answer Source

Not at the moment. However there are plans for completely analyzing HTML templates using the TypeScript compiler.

More

If you want type safe templates give JSX / React a go http://youtube.com/watch?v=-oEa6UueHsk

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download