modified-angular-joystick
v0.1.0
Published
Joystick Directive for AngularJS
Downloads
20
Readme
angular-joystick
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
Getting Started
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"]);Example
<angular-joystick coords="coords" on-move="joystickMove()" />Description of attributes
| 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() |
