0.1.0 • Published 3 years ago

modified-angular-joystick v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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 --save

Or

npm install angular-joystick --save

Then 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

AttributeDescriptionRequiredBindingExample
coordsmodel to retreive current position (eg: {x: xVal, y: yVal})No=coords
on-moveexternal function to call when position movedNo@joystickMove()