5.0.0 • Published 10 months ago

@ng-not-found/ng-typed-date v5.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

NgTypedDate

Directive that uses the native date picker and binds the typed value to Date.

How to install with npm ?

npm i @ng-not-found/ng-typed-date --save

What is this component for?

This te directive has the purpose of facilitating the use of date fields, making the binding in the model in a typed way.

When working with dates in Angular, it binds with a string and that's usually not what we need. We need it to be a valid Date.

How do I use it?

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { FormsModule } from '@angular/forms';
import { NgTypedDateModule } from '@ng-not-found/ng-typed-date';

@NgModule({
declarations: [
  AppComponent,
],
imports: [
  FormsModule,
  BrowserModule,
  AppRoutingModule,
  NgTypedDateModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
<form #form="ngForm">
  <input type="date" [(ngModelDate)]="data" name="data" />
  <input type="datetime-local" [(NgModelDatetimeLocal)]="data" name="data" />
</form>

Properties

NameType
minDate / string
maxDate / string
5.0.0

10 months ago

4.0.9

2 years ago

4.0.8

2 years ago

4.0.7

2 years ago

3.0.7

2 years ago

2.0.7

2 years ago

2.0.6

3 years ago

2.0.3

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

0.0.1

3 years ago