Socket
Socket
Sign inDemoInstall

ng2-datetime

Package Overview
Dependencies
5
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ng2-datetime

Bootstrap datetime picker for Angular2


Version published
Weekly downloads
600
increased by6.76%
Maintainers
1
Install size
6.29 MB
Created
Weekly downloads
 

Readme

Source

ng2-datetime

npm version

Datetime picker (plugins wrapper) for Angular2.

Demo and docs: https://nkalinov.github.io/ng2-datetime

Dependencies

  • Bootstrap3 (CSS only)
  • jQuery 2+ (supports v3)
  • Bootstrap-datepicker (JS+CSS)
    • npm install --save bootstrap-datepicker
    • or use the bundled version from src/vendor/bootstrap-datepicker
  • Bootstrap-timepicker (JS+CSS)
    • npm install --save bootstrap-timepicker
    • or use the bundled version from src/vendor/bootstrap-timepicker

Installation

npm install --save ng2-datetime

Usage

  1. import some way or another the required dependencies
  2. import { NKDatetimeModule } from 'ng2-datetime/ng2-datetime';
  3. Add it to your app module's imports property
@NgModule({
    ...
    imports: [NKDatetimeModule, ...],
    ...
})
  1. Use it: <datetime [(ngModel)]="date"></datetime>

See the DEMO and it source for more info and available options.

Contributing

Fork > Create > Pull request

Thanks

Keywords

FAQs

Last updated on 18 Nov 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc