Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.11 KB

File metadata and controls

43 lines (30 loc) · 1.11 KB

angular-clippy

Angular module and directive for ClippyJS

Installation

Place the following on your server (you can use the build.sh to generate the directory to copy):

  • ./angular-clippy.js
  • ./Agents/ (rename from agents/)
  • ./clippy.css
  • ./clippy.min.js

Make sure you have JQuery and Angular:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script>

Load up angular clippy and dependencies:

<link rel="stylesheet" href="/css/clippy.css">

<script src="/js/clippy/clippy.min.js"></script>
<script src="/js/clippy/angular-clippy.js"></script>

Usage

<clippy data-agent="Merlin" data-on-init="callbackName"></clippy>
Attribute Description
agent string denoting the clippy agent desired, see agents/
on-init name of the callback function in your scope, will be called with the initialized agent as the first argument