Skip to content

Instantly share code, notes, and snippets.

@Enome
Created October 26, 2012 08:57
Show Gist options
  • Save Enome/3957729 to your computer and use it in GitHub Desktop.
Save Enome/3957729 to your computer and use it in GitHub Desktop.
var directives = {
upload: function ($compile) {
return {
restrict: 'E',
require: 'ngModel',
controller: 'UploadCtrl',
link: function (scope, element, attr, model) {
scope.url = element.attr('url');
element.html($compile(template)(scope));
}
};
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment