angular-xeditable
angular-xeditable copied to clipboard
Improvement idea : type="..."
I've been using xeditable for some months and I've been very satisfied of it so far. Nevertheless there is one case that could be improved : when generating form fields from type (used often for scaffolding or some admin interface). In pseudocode the template looks like :
for type in types :
switch (type)
when string <xeditable-text>
when number <xeditable-number>
when text when string <xeditable-textarea>
The fact that the directives are distinct editable-* makes it a little bit verbose and less flexible than a simple :
for type in types :
<xeditable-input type="{{type}}">
Pull requests are accepted :)