Slide to confirm a good alternative to confirmation box.A customizable slider that will activate a callback when the user slides it to 100%.
npm install ngx-slide-to-confirm --save
Import the module:
import { SlideToConfirmModule } from 'ngx-slide-to-confirm';
@NgModule({
imports: [ SlideToConfirmModule],
})
export class AppModule {
}
<ngx-slide-to-confirm placeHolder="Slide to confirm" (confirmEvent)="onConfirm()"></ngx-slide-to-confirm>
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Run ng build SlideToConfirm
to build the project. The build artifacts will be stored in the dist/
directory.
After building your library with ng build SlideToConfirm
, go to the dist folder cd dist/slide-to-confirm
and run npm publish
.
Run ng test SlideToConfirm
to execute the unit tests via Karma.