Time and date selector for consular appointments, based on https://github.com/ministryofjustice/moj_slotpicker.
The FCO Consular appointments slot picker is an AngularJS version of the MOJ slotpicker which uses BookingBug's Javascript SDK and REST API to retrieve availability data.
The FCO slot picker is designed to be embedded as part of a BookingBug booking journey, however, by replacing usage of the TimeService and DayService with your own Angular service, the slot picker can work with an alternative data source.
Key differences between the MOJ and FCO slot pickers include:
- Refactored code to remove DOM manipulation where possible as this is handled by AngularJS's two way data binding capabilities
- Refactored code to utilise BookingBug's AngularJS services for retrieving availability data
- Refactored code to interact with a BookingBug BasketItem when setting date/time
- Event binding has been removed and updated to use ng-click
- Days/months are no longer hard coded, instead moment.js is utilised
- Removed multiple time selection behaviour