diff --git a/README.md b/README.md index 6f78630..920e8a6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ angular-reservation AngularJS configurable module to set up an appointment on a calendar. It can be used to make a reservation in a restaurant, clinic, barber shop, or any kind of service provided in time slots. -#[See the DEMO](https://hmartos.github.io/angular-reservation/) +# [See the DEMO](https://hmartos.github.io/angular-reservation/) ## Requirements @@ -18,56 +18,56 @@ of service provided in time slots. ### Load scripts Load AngularJS, dependencies script files and the script file angular-reservation.min.js in your index.html. -``` - - - - - - - +```html + + + + + + + ``` ### Load styles Load bootstrap css and angular-reservation.min.css in your index.html. -``` - - - - +```html + + + + ``` ### Add module dependency Add 'hm.reservation' to the list of module dependencies. -``` - angular.module('myApp', [ - 'hm.reservation' - ]) +```javascript +angular.module('myApp', [ + 'hm.reservation' +]) ``` ### HTML Markup Add angular-reservation directive in an html page. -``` - - +```html + + ``` ### Setup Configure module. -``` - //Minimal configuration of reservation module - angular.module('myApp').config(function (reservationConfigProvider) { - var config = { - getAvailableHoursAPIUrl: "http://API-URL/availableHours", //API url endpoint to load list of available hours - reserveAPIUrl: "http://API-URL/reserve", //API url endpoint to do a reserve - }; - - reservationConfigProvider.set(config); - }); +```javascript +//Minimal configuration of reservation module +angular.module('myApp').config(function (reservationConfigProvider) { + var config = { + getAvailableHoursAPIUrl: "http://API-URL/availableHours", //API url endpoint to load list of available hours + reserveAPIUrl: "http://API-URL/reserve", //API url endpoint to do a reserve + }; + + reservationConfigProvider.set(config); +}); ``` # [See the full documentation](https://hmartos.github.io/angular-reservation/#!#docs)