I am using Angular 4 and Angular Material 2. For the following code :
If you are finding difficulties importing files then just you can have one methodology to import.
First import any required components in your .component.ts
And import the specific module in your module .module.ts
And then add it in imports in @NgModule ({
imports : [
Example you want to import formcontrols just in you angular application
1). app.component.ts
`import { FormGroup, FormControl } from '@angular/forms'`
2). app.module.ts
import { FormsModule } from '@angular/forms'
below in app.module.ts in
@NgModule ({
imports : [ FormsModule ]
})