projects
/
angular-drzb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f5d2c7
)
add ng-change to my-label-input
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 24 Jan 2013 15:34:35 +0000
(16:34 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 24 Jan 2013 15:34:35 +0000
(16:34 +0100)
app/js/directives.js
patch
|
blob
|
history
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>';