Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.
/ angular-joystick Public archive

Joystick Directive for AngularJS. A fork of Scott Lobdell's joystick initially for backbone (https://github.com/slobdell/joystick)

License

Notifications You must be signed in to change notification settings

achorein/angular-joystick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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()

About

Joystick Directive for AngularJS. A fork of Scott Lobdell's joystick initially for backbone (https://github.com/slobdell/joystick)

Resources

License

Stars

Watchers

Forks

Packages

No packages published