Skip to content

UKForeignOffice/fco-consular-appointments-slotpicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

fco-consular-appointments-slotpicker

Time and date selector for consular appointments, based on https://github.com/ministryofjustice/moj_slotpicker.

Introduction

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.

Usage

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

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

Releases

No releases published

Packages

No packages published