import { NgModule } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { ToggleButtonComponent } from './toggle-button.component' ; const DECLARATIONS = [ ToggleButtonComponent ] ; @ NgModule ( { declarations : [ ... DECLARATIONS ] , imports : [ CommonModule ] , exports : [ ... DECLARATIONS ] , } ) export class ToggleButtonModule { }