Skip to content

jvdownie/angular-history-back

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-history-back

Angular 1.x wrapper for window.history.back()

Usage

1) Get angular-history-back for your project:

bower i angular-history-back --save

2) Add it to your HTML file:

<script src="bower_components/angular-history-back/dist/angular-history-back.min.js"></script>

3) Add 'hBack' to your main module's list of dependencies

angular.module('app', ['hBack'])

4) Now add the attribute 'back-button' to an anchor or button tag

<a back-button>Back</a>
<button back-button>Back</button>

About

Angular 1.x wrapper directive for window.history.back()

Resources

License

Stars

Watchers

Forks

Packages

No packages published