Skip to content

Instantly share code, notes, and snippets.

@DevEarley
Created March 8, 2018 02:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DevEarley/caf3e2966382d9548309ee778657e76a to your computer and use it in GitHub Desktop.
Save DevEarley/caf3e2966382d9548309ee778657e76a to your computer and use it in GitHub Desktop.
Just some directive, doesn't do much.
angular
.module("someApp", [])
.directive("someDirective", function () {
return {
scope:{
someStringLiteral:"@",
someTwoWayBinding:"=",
someFunction:"&"
},
controllerAs:"vm",
controller:function($scope){
var vm = this;
},
link:function($scope,element){}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment