This project was generated with Angular CLI version 15.2
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. For installation from root folder contents of the dist/ directory will be copied to the root. This may be changed later
- Add lib dependency to
package.jsonand runnpm i
"seatmap-angular-lib": "github:Kwiket/jets-seatmap-angular-wrapper"
- Import module into your
app.module.tsand add it toimports
import { SeatmapAngularLibModule } from 'seatmap-angular-lib';
...
@NgModule({
declarations: [
AppComponent,
...
],
imports: [
...
SeatmapAngularLibModule,
...
],
providers: [
],
bootstrap: [AppComponent]
})
export class AppModule { }- See usage below
<seatmap
[config]="config"
[flight]="flight"
[availability]="availability"
[passengers]="passengers"
[currentDeckIndex]="deckIndex"
(onSeatMapInited)="onSeatInit($event)"
(onSeatSelected)="onSeatSelect($event)"
(onSeatUnselected)="onSeatUnselect($event)"
(onTooltipRequested)="onTooltipRequested($event)"
(onLayoutUpdated)="onLayoutUpdated($event)"
></seatmap>For better undertanding how it works read React lib doc and Integration instruction