Skip to content

Instantly share code, notes, and snippets.

@bluehallu
Created February 10, 2014 11:48
Show Gist options
  • Save bluehallu/8914486 to your computer and use it in GitHub Desktop.
Save bluehallu/8914486 to your computer and use it in GitHub Desktop.
am.directive("showXeditable", function() {
return {
link: function(scope, element, attrs) {
if(attrs.isnew){
scope.$editable.show();
}
},
require: 'editableText',
restrict: 'A',
priority: 1000 //ensure it runs AFTER editableText directive
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment