angular - Getting error globalize is undefined Typescript -


i'm working on angular 4 application support l10n. im using globalize. reference.appcomponent.ts follows

import { component,oninit } '@angular/core';  import globalize "globalize";  @component({    selector: 'app-root',    templateurl: './app.component.html',    styleurls: ['./app.component.css']  })  export class appcomponent implements oninit {  ngoninit()  {    console.log(globalize);    globalize.locale( "pt" );   var formatter = globalize.currencyformatter( "usd" );   console.log(formatter( 9.99 ));  }  }

during compile there no errors,but runtime im getting error globalize not defined . im stuck @ point .any appreciated.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -