import { NgModule } from '@angular/core' ; import { FormsModule , ReactiveFormsModule } from '@angular/forms' ; import { Routes , RouterModule } from '@angular/router' ; import { AppComponent } from './app.component' ; import { NgBrazil , TextMask } from 'ng-brazil' ; import { DemoComponent } from './demo/demo.component' ; import { CommonModule } from '@angular/common' ; export const routes = [ { path : '' , component : DemoComponent } ] ; @ NgModule ( { declarations : [ AppComponent , DemoComponent ] , imports : [ CommonModule , FormsModule , ReactiveFormsModule , TextMask . TextMaskModule , NgBrazil , RouterModule . forRoot ( routes , { relativeLinkResolution : 'legacy' } ) ] , providers : [ ] , bootstrap : [ AppComponent ] } ) export class AppModule { }