@solidexpert/ngx-country-helper
v15.0.0
Published
Angular helper to get coyntry by timezone.
Downloads
6
Readme
Angular helper to get current country by TimeZone
Versions
| Angular version | package version | | --------------- | --------------- | | 14.x|14.x| | 15.x|15.x|
Installation
npm install --save @solidexpert/ngx-country-helper
Usage
Add ClickOutsideModule
to your list of module imports:
import * as helper from "@solidexpert/ngx-country-helper";
You can then use the directive in your templates:
@Component({
selector: 'app',
template: `
<div>{{data.country}} -- {{data.code}}</div>
`
})
export class AppComponent {
data:{}
constructor() {
this.data = helper.getCountry();
}
}