ngx-virtual-joystick
v0.0.9
Published
Angular 4 Click to edit component
Downloads
6
Maintainers
Readme
ngx virtual joystick
Angular 4 Click to edit component
Demo
Table of contents
About
Installation
Install through npm:
npm install --save ngx-virtual-joystick
Then include in your apps module:
import { Component, NgModule } from '@angular/core';
import { ngxVirtualJoystickModule } from 'ngx-virtual-joystick';
@NgModule({
imports: [
ngxVirtualJoystickModule.forRoot()
]
})
export class MyModule {}
Finally use in one of your apps components:
import { Component } from '@angular/core';
@Component({
template: '<virtual-joystick></virtual-joystick>'
})
export class MyComponent {}
You may also find it useful to view the demo source.
Usage without a module bundler
<script src="node_modules/ngx-virtual-joystick/bundles/ngx-virtual-joystick.umd.js"></script>
<script>
// everything is exported ngxVirtualJoystick namespace
</script>
Documentation
All documentation is auto-generated from the source via compodoc and can be viewed here: https://sijpesteijn.github.io/ngx-virtual-joystick/docs/
License
MIT