ng-booking-lib
v0.1.0
Published
This is a test project for a side project bookings service. You can use this library in your Angular app.
Readme
NgBookingLib
This is a test project for a side project bookings service. You can use this library in your Angular app.
Installation:
npm i ng-booking-lib@latestImplementation:
The "dateSelected" method returns the emitted value of the selected date. "showDate" would be a method in your app that would handle that as needed.
<ng-booking-date-picker (dateSelected)="showDate($event)"></ng-booking-date-picker>When you reference the component "ng-booking-date-picker" you get a method that spits back an EventEmitter of the date you've selected. Right now this doesn't actually do anything, but there's a service that will be set up to persist the data.
Components available:
ng-booking-lib and ng-booking-date-picker, more coming soon.
Options:
If you want to style the nb-booking-date-picker there's a "styles" input that accepts an object for styling.
Example below would update the color to "red".
styles = { color: red }