Skip to content

Instantly share code, notes, and snippets.

@chandermani
Created August 6, 2013 11:45
Show Gist options
  • Save chandermani/6163807 to your computer and use it in GitHub Desktop.
Save chandermani/6163807 to your computer and use it in GitHub Desktop.
.directive('myDirective', function () {
return {
restrict: 'E',
scope: {
model: '='
},
// The linking function will add behavior to the template
link: function (scope, element, attrs) {
}
};
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment