Created
August 15, 2013 23:36
-
-
Save darethas/6245963 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
angular.module('namespace.name', []) | |
.directive('spcName, function() { | |
return { | |
restrict: 'EA', | |
template: '<div></div>', | |
replace: true, | |
transclude: true, | |
scope: {}, | |
controller: controller, | |
link: link | |
}; | |
function controller($scope) { | |
} | |
function link(scope, el, attr) { | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
anything in this object, I am going to let it through.
Lets say this directive had a label on it
scope: {
label: '@Label' //
}
symbols to link to the outside world:
'@' = pure text
' = ' = getting a scope object that contains this directive
' & ' = is how you bind a method