An open API service indexing awesome lists of open source software.

https://github.com/samuelnygaard/ngx-timezones

An Angular module for timezones (based on moment.js)
https://github.com/samuelnygaard/ngx-timezones

angular moment moment-js momentjs picker selector timezone timezones

Last synced: about 1 month ago
JSON representation

An Angular module for timezones (based on moment.js)

Awesome Lists containing this project

README

          

# ngx-timezones

An Angular module for timezones (based on moment.js)

## Demonstration

Go to this website to try out the library:
[https://samuelnygaard.github.io/ngx-timezones/](https://samuelnygaard.github.io/ngx-timezones/)

## Installation

Install the library in your Angular projects root folder:

```bash
npm i ngx-timezones
```

## Importing

Import the `NgxTimezonesModule` in the your `app.module.ts`:

```typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
// Import the module
import { NgxTimezonesModule } from 'ngx-timezones';

@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
// Include the module in the import section
NgxTimezonesModule,
BrowserAnimationsModule,
],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
```

## Documentation

TODO