This project is now archived and will no longer be updated to new angular versions.
NgxJoystick is an angular joystick component. It is a wrapper around the nipplejs library providing joystick functionality to your angular application.
https://wweitzel.github.io/ngx-joystick/
For Angular 16 projects
npm install ngx-joystick
For Angular 15 projects
npm install [email protected]
For Angular 14 projects
npm install [email protected]
For Angular 12 projects
npm install [email protected]
For Angular 11 projects
npm install [email protected]
For Angular 8 projects
npm install [email protected]
https://www.npmjs.com/package/ngx-joystick
Import NgxJoystickModule in your module. For example,
import { NgxJoystickModule } from 'ngx-joystick'; <--- Added
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxJoystickModule <--- Added
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }Then see src/app files for usage. Make sure to look at the css as well.
- Build the application
ng build -c production
- Navigate to the
/distdirectory - Add
<base href="ngx-joystick">to theindex.html - Make a new file called
404.htmland copy the contents ofindex.htmlinto it - Copy the contents of the
/distdirectory into the/docsdirectory - Commit/Push the new
/docsdirectory to master branch