Created
February 26, 2014 22:46
-
-
Save morganhein/9240382 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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