angular-history-back

1.0.2 • Public • Published

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>

Package Sidebar

Install

npm i angular-history-back

Weekly Downloads

66

Version

1.0.2

License

MIT

Last publish

Collaborators

  • jld.downie