Search code examples
typescriptangularwebstorm

Angular2: Contents of collection 'x' are updated, but never queried.?


Variables that are defined, but not used in .ts file rather in template, show this warning on hover in WebStorm.

Unused field X more... (CTRL + F1)

Contents of collection 'x' are updated, but never queried.more... (CTRL + F1)

Is it TSLint or WebStorm? because it's just a warning.

Should I just ignore it?


Solution

  • Should I just ignore it?

    Its webstorm. It will give a lot of similar helpful warning. I've learnt to ignore them .. especially if you are using TypeScript (which has great error detection built in anyways).