import { ScrollingModule } from '@angular/cdk/scrolling' ; import { CommonModule } from '@angular/common' ; import { NgModule } from '@angular/core' ; import { MatAutocompleteModule } from '@angular/material/autocomplete' ; import { MatButtonModule } from '@angular/material/button' ; import { MatCardModule } from '@angular/material/card' ; import { MatExpansionModule } from '@angular/material/expansion' ; import { MatIconModule } from '@angular/material/icon' ; import { MatInputModule } from '@angular/material/input' ; import { MatListModule } from '@angular/material/list' ; import { MatProgressBarModule } from '@angular/material/progress-bar' ; import { MatSelectModule } from '@angular/material/select' ; import { MatSlideToggleModule } from '@angular/material/slide-toggle' ; import { MatSliderModule } from '@angular/material/slider' ; import { MatTabsModule } from '@angular/material/tabs' ; import { MatTooltipModule } from '@angular/material/tooltip' ; import { TranslateModule } from '@ngx-translate/core' ; import { CardComponent , SelectListComponent } from './component' ; const COMPONENTS = [ CardComponent , SelectListComponent ] ; const MODULES = [ ScrollingModule , MatAutocompleteModule , MatButtonModule , MatCardModule , MatExpansionModule , MatIconModule , MatInputModule , MatSlideToggleModule , MatSliderModule , MatSelectModule , MatTabsModule , MatListModule , MatProgressBarModule , MatTooltipModule ] ; @ NgModule ( { imports : [ ... MODULES , CommonModule , TranslateModule ] , exports : [ ... MODULES , ... COMPONENTS ] , declarations : [ ... COMPONENTS ] } ) export class MaterialModule { }