From 80bed715b674c14227964f83e0d307437ab59dce Mon Sep 17 00:00:00 2001 From: Jordan Date: Sat, 23 Aug 2014 23:47:23 -0400 Subject: [PATCH] Update README.md Took out another module from readme to avoid confusion, and added a note about missing elements and a workaround. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c252a46..569bbb0 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ angular-help-overlay ==================== -Angular Wrapper for [chardin.js](https://github.com/heelhook/chardin.js "Chardin.js") instruction overlay which was inspired by the "new" Gmail composer tour. +Angular Wrapper for [chardin.js](https://github.com/heelhook/chardin.js "Chardin.js") instruction overlay which was inspired by the Gmail composer tour at the time. Include the angular-help-overlay js file (min or source), chardin.js, and chardin.css. If you are using grunt and using a bowerInstall task, you probably will still need to manually include chardin.js and chardin.css yourself, however the angular-help-overlay should be injected just fine. Next, install the module to your app: ``` -angular.module('YourApp', ['angulartics', 'angularHelpOverlay']) +angular.module('YourApp', ['angularHelpOverlay']) ... }); ``` @@ -18,7 +18,6 @@ Usage is straightforward: Find the dom element where you want to the overlay to ```HTML ... ``` - With showHelp being a scoped boolean property. Setting that property to true will enable the overlay. Since this is just an AngularJS wrapper around a jquery plugin, this directive still uses chardin.js native attribute lookups: @@ -38,4 +37,6 @@ help-overlay-stop: events being passed are the original chardin.js event objects. +Note: The chardin.js attributes will not work on elements that get replaced at compile time, particularly those that are angular directives with replace:true. The workaround for this is to enclose the directive with a simple html wrapper element (e.g., or a
) with the chardin.js attributes on it. + The example folder contains a modified example of the original chardin.js (i.e., minus the image animate).