@jojovms/angular-spotlight-tour
v0.0.2
Published
Guidō: An Angular wrapper (service & directive) for the formatted spotlight tour library.
Maintainers
Readme
@jojovms/angular-spotlight-tour
Angular wrapper for @jojovms/spotlight-tour-core.
Installation
npm install @jojovms/angular-spotlight-tourUsage
import { Component } from '@angular/core';
import { SpotlightTourService } from '@jojovms/angular-spotlight-tour';
@Component({...})
export class AppComponent {
constructor(private tourService: SpotlightTourService) {}
startTour() {
// 1. Initialize with options first
this.tourService.init({
steps: [
{ target: '#btn1', content: 'This is button 1' },
{ target: '#btn2', content: 'This is button 2' }
]
});
// 2. Start the tour
this.tourService.start();
}
}License
MIT © Shijo Shaji
