Skip to content

extremeprog-com/ng-prevent-navigation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ng-prevent-navigation

Angular directive for prevent navigation out of the page.

Installation

bower install ng-prevent-navigation --save

Usage

var app = angular.module('myApp', ['preventNavigation']);
<div ng-prevent-navigation="vm.pageShouldBeReloaded"
     ng-prevent-navigation-text="Payment form has unsaved changes. 
     If you leave the page now you will lose those changes."
></div>

Releases

No releases published

Packages

No packages published