15.0.0 • Published 1 year ago

@solidexpert/ngx-country-helper v15.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Angular helper to get current country by TimeZone

Versions

Angular versionpackage version
14.x14.x
15.x15.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();
  }
}