Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
ng-bootstrap-datetime-angular-13
Advanced tools
This package supports Angular 8
Description
This picker is responsive design, so feel free to try it in your desktops, tablets and mobile devices.
@ng-bootstrap/ng-bootstrap ^1.0.0
https://ng-bootstrap-datetime-angular.stackblitz.io
Install with npm:npm install ng-bootstrap-datetime-angular --save
Add NgBootstrapDatetimeAngularModule to your @NgModule like example below
import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";
import { AppComponent } from "./app.component";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { CommonModule } from "@angular/common";
import { NgBootstrapDatetimeAngularModule } from "ng-bootstrap-datetime-angular";
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
NgBootstrapDatetimeAngularModule,
CommonModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {}
Add your input into form like example below
<form>
<div [formGroup]="formGroup">
<ng-bootstrap-datetime-angular
inputDatetimeFormat="dd/MM/yyyy hh:mm a"
formControlName="activeEndDate"
name="activeEndDate"
></ng-bootstrap-datetime-angular>
</div>
</form>
Connect to your component
import { Component, OnInit } from "@angular/core";
import { FormGroup, FormControl, Validators } from "@angular/forms";
@Component({
selector: "app-root",
templateUrl: "./app.component.html",
styleUrls: ["./app.component.scss"]
})
export class AppComponent implements OnInit {
title = "Date";
formGroup: FormGroup;
ngOnInit() {
this.formGroup = new FormGroup({
activeEndDate: new FormControl(null, {
validators: [Validators.required]
})
});
}
}
Danilo Meneses Loaisiga
FAQs
Angular Bootstrap Date Time Picker
The npm package ng-bootstrap-datetime-angular-13 receives a total of 0 weekly downloads. As such, ng-bootstrap-datetime-angular-13 popularity was classified as not popular.
We found that ng-bootstrap-datetime-angular-13 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.