ember-cli-dirty-confirm
A dirty model route transition aborter. It will show a confirm dialog giving you a chance to cancel a route change. If you agree, it will rollback your model.
Usage
ember install ember-cli-dirty-confirm
; Route;
It also exposes an action called toggleDirtyConfirm
, so you can toggle off from outside the route.