projects
/
angular-drzb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add ng-change to my-label-input
[angular-drzb]
/
app
/
js
/
directives.js
diff --git
a/app/js/directives.js
b/app/js/directives.js
index
c4bed57
..
8220101
100644
(file)
--- a/
app/js/directives.js
+++ b/
app/js/directives.js
@@
-70,6
+70,7
@@
directive('myLabelInput', function() {
' <select id="'+m+'" ng-model="'+m+'"';
;
if ( attrs.ngOptions ) html += ' ng-options="' + attrs.ngOptions + '"';
+ if ( attrs.ngChange ) html += ' ng-change="' + attrs.ngChange + '"';
html += '></select>'+
' </div>'+
' </div>';