Skip to content

Instantly share code, notes, and snippets.

@morganhein
Created February 26, 2014 22:46
Show Gist options
  • Save morganhein/9240382 to your computer and use it in GitHub Desktop.
Save morganhein/9240382 to your computer and use it in GitHub Desktop.
'use strict';
angular.module('capstoneApp')
.directive('backbutton', function() {
return {
restrict: 'E',
template: '<button>Back</button>',
link: function(scope, element, attrs) {
element.bind('click', function() {
$window.history.back();
})
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment