Hi there,
i tried to modify the code to run in typescript
import { Component, VERSION } from "@angular/core";
import * as nationalities from "i18n-nationality";
@Component({
selector: "my-app",
templateUrl: "./app.component.html",
styleUrls: ["./app.component.css"]
})
export class AppComponent {
name = "Angular " + VERSION.major;
ngOnInit() {
console.log(nationalities.getName("US", "en"));
}
}
Result:
"undefined"
There ain't any error in my program. Any clue?
Hi there,
i tried to modify the code to run in typescript
Result:
"undefined"
There ain't any error in my program. Any clue?