Joystick Directive for AngularJS. A fork of Scott Lobdell's joystick, initially for backbone (https://github.com/slobdell/joystick).
To see original demo go here: http://slobdell.github.io/joystick
Download the package, and include the angular-joystick.min.js file in your page.
bower install angular-joystick --saveOr
npm install angular-joystick --saveThen add the angular-joystick module to your Angular App file, e.g.
var app = angular.module('app', ["angular-joystick"]);<angular-joystick coords="coords" on-move="joystickMove()" />| Attribute | Description | Required | Binding | Example |
|---|---|---|---|---|
| coords | model to retreive current position (eg: {x: xVal, y: yVal}) | No | = | coords |
| on-move | external function to call when position moved | No | @ | joystickMove() |