3

My question very simple, I want to know what will happens if I imported unused components or variables or any thing else ?

Because as I see in my cmd lines, there's some red lines or marker but there is no visible actions... So should I take care for this case or I'm fine ?

enter image description here

sebaferreras
  • 44,206
  • 11
  • 116
  • 134
Ali H
  • 903
  • 14
  • 36

1 Answers1

5

Those are tslint warnings.

Importing unused modules and creating unrequired variables leads to bad code. It does not stop your application from running. But it causes needless loading of modules which can cause performance and maintainability issues.

It is best to heed these warnings and clean up your imports.

If you wish to disable this warning and not have this code checking, you can check How to disable 'Unused import'-warnings on Ionic2 / Angular2 to see how to disable it.

sebaferreras
  • 44,206
  • 11
  • 116
  • 134
Suraj Rao
  • 29,388
  • 11
  • 94
  • 103