From 558b0e4ccdfcf143bd9cc8e7bb3f3e56edc515bc Mon Sep 17 00:00:00 2001 From: Thomas Himblot Date: Mon, 15 Sep 2014 16:14:56 +0200 Subject: [PATCH] Adding configuration section for the provider --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index aa0fde2..64c2bce 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,18 @@ postman.warn|error|info|success(parcelTitle, parcelBody); Each of these functions return a promise a la Angular's `$q`. If the `parcel` is clicked by the user, that promise will resolve. +## Configuration + +* **setTimeout(duration)**: display duration in ms for the parcels (default is 6000). + +```js +angular.module('DemoApp', ['Postman', 'ngAnimate']) + +.config(['postmanSettingsProvider', function(postmanSettingsProvider) { + postmanSettingsProvider.setTimeout(4500); +}]); +``` + ## Demo Very basic demo: [http://cwspear.github.io/angular-postman/](http://cwspear.github.io/angular-postman/). More advanced usage demo coming soon-ish.