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

https://github.com/puttputt/ngx-moment-picker

An angular2+ port of angular-moment-picker
https://github.com/puttputt/ngx-moment-picker

angular2 angular8 datetimepicker momentjs

Last synced: about 2 months ago
JSON representation

An angular2+ port of angular-moment-picker

Awesome Lists containing this project

README

          

# Ngx Moment Picker

This project is a port of popular angularJS picker, angular-moment-picker.

## Installation

```
npm install ngx-moment-picker
```

```
import { NgxMomentPickerModule } from 'ngx-moment-picker';

@NgModule({
imports: [
NgxMomentPickerModule,
],
declarations: [],
providers: [],
})
export class YourModule {}
```

## Usage

```html

```

```typescript
export class ExampleComponent {

public moment: moment.Moment;

@ViewChild('ngxmomentpicker', { static: false }) picker;

constructor() { }

public changed(event: moment.Moment) {
this.moment = event;
}
}
```

## Development

### Build
increment package.json version

Run `ng build moment-picker` to build the project.

## Publishing to NPM

`cd dist/moment-picker`

`npm publish`