![New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions](https://cdn.sanity.io/images/cgdhsj6q/production/86e6ebdea652d20da070ebbda20134b839972db7-1024x1024.webp?w=800&fit=max&auto=format)
Security News
New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
ng2-datetime
Advanced tools
Readme
Datetime picker plugins wrapper for Angular2.
npm install --save bootstrap-datepicker
or use the bundled version from src/vendor/bootstrap-datepicker
npm install --save bootstrap-timepicker
or use the bundled version from src/vendor/bootstrap-timepicker
npm install --save ng2-datetime
import 'ng2-datetime/src/vendor/bootstrap-datepicker/bootstrap-datepicker.min.js';
import 'ng2-datetime/src/vendor/bootstrap-timepicker/bootstrap-timepicker.min.js';
The bundled CSS is in the same folder, it's up to you to decide how to import those.
2. import {NKDatetime} from 'ng2-datetime/ng2-datetime';
3. Add to your component's directives property
@Component({
...
directives: [NKDatetime],
...
})
<datetime [(ngModel)]="date"></datetime>
See the DEMO and it source for more information.[datepicker]="{Object} || false"
- Object with Datepicker options or false
if you want to remove the datepicker
Ex. <datetime [datepicker]="{daysOfWeekDisabled: [0,6]}" [(ngModel)]="date"></datetime>
[timepicker]="{Object} || false"
- Object with Timepicker options or false
if you want to remove the timepicker
Ex. <datetime [timepicker]="{showMeridian: false, minuteStep: 1}" [(ngModel)]="date"></datetime>
Fork > Create > Pull request
FAQs
Bootstrap datetime picker for Angular
The npm package ng2-datetime receives a total of 530 weekly downloads. As such, ng2-datetime popularity was classified as not popular.
We found that ng2-datetime 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
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
Security News
Results from the 2023 State of JavaScript Survey highlight key trends, including Vite's dominance, rising TypeScript adoption, and the enduring popularity of React. Discover more insights on developer preferences and technology usage.
Security News
The US Justice Department has penalized two consulting firms $11.3 million for failing to meet cybersecurity requirements on federally funded projects, emphasizing strict enforcement to protect sensitive government data.