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 11 projects
npm install ngx-joystick
For Angular 8 projects
npm install ngx-joystick@0.1.1
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
/dist
directory - Add
<base href="ngx-joystick">
to theindex.html
- Make a new file called
404.html
and copy the contents ofindex.html
into it - Copy the contents of the
/dist
directory into the/docs
directory - Commit/Push the new
/docs
directory to master branch