Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .directive('goClick', ['$location',
- function($location){
- return {
- restrict: 'AEC',
- scope: {
- path: '@goClick'
- },
- link: function (scope, element, attrs){
- element.click(function(){
- $location.path(scope.path);
- });
- }
- };
- }
- ])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement