Hey there! I'm currently working on building an Angular 4 application that needs to support L10n. I've decided to incorporate globalize into my project. Below is a snippet of my App component:
import { Component, OnInit } from '@angular/core';
import globalize from 'globalize';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
glb: any;
constructor() {
var formatter = globalize.numberFormatter();
console.log(formatter(233));
}
ngOnInit() {
this.glb = globalize;
console.log(this.glb.currencyFormatter("1234"));
}
}
However, I'm encountering the following error during compilation:
ERROR in ./src/app/app.component.ts
Module not found: Error: Can't resolve 'globalize' in 'C:\project\aag
@ ./src/app/app.component.ts 12:0-34
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4201 ./src/main.ts
Your assistance with this issue would be greatly appreciated!