Created
September 26, 2014 12:41
-
-
Save Rana283/a6a2fa48e07fce745e17 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var angularApp=angular.module('angularApp.directives.toolbarTip', []); | |
angularApp.directive('toolbarTip', function() { | |
return { | |
// Restrict it to be an attribute in this case | |
restrict: 'E', | |
scope:{ | |
friend:'=', | |
title:'=' | |
}, | |
// transclude:true, | |
replace:true, | |
// responsible for registering DOM listeners as well as updating the DOM | |
link: function(scope, element, attrs) { | |
// toolbar(scope.$eval(attrs.toolbarTip)); | |
element.click(function(){ | |
}); | |
}, | |
templateUrl: "templates/directives/toolbarTip.html" | |
// controller:function($scope){ | |
// // console.log($scope.friend); | |
// } | |
}; | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample Directive