npm.io
15.0.0 • Published 3 years ago

@solidexpert/ngx-country-helper

Licence
MIT
Version
15.0.0
Deps
0
Size
127 kB
Vulns
0
Weekly
0

Angular helper to get current country by TimeZone

Versions

Angular version package version
21.x 21.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();
  }
}

Keywords