I am new to Angular world. There is something which confuses me while learning it, why we need to import any module two times : once through Javascript `'import'` statement and then putting it in `'import'` array?

Why need to import the same thing two times? Same goes with other code parts : need to first import `'component'` and then again need to put the same in `'declarations'` array of `@NgModule`.

Why need to do that? I am not getting it.