projects
/
angular-drzb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b3aab3
)
added ng-change to my-label-input
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 24 Jan 2013 14:40:37 +0000
(15:40 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 24 Jan 2013 14:40:37 +0000
(15:40 +0100)
app/js/directives.js
patch
|
blob
|
history
diff --git
a/app/js/directives.js
b/app/js/directives.js
index
ac273fe
..
c4bed57
100644
(file)
--- a/
app/js/directives.js
+++ b/
app/js/directives.js
@@
-45,7
+45,8
@@
directive('myLabelInput', function() {
' <input type="'+my_type+'" id="'+m+'" ng-model="'+m+'"';
;
if ( attrs.placeholder ) html += ' placeholder="' + attrs.placeholder + '"';
- if ( attrs.ngRequired ) html += ' ng-required="' + attrs.ngRequired + '"';
+ if ( attrs.ngRequired ) html += ' ng-required="' + attrs.ngRequired + '"';
+ if ( attrs.ngChange ) html += ' ng-change="' + attrs.ngChange + '"';
html += '>'+
' </div>'+
' </div>';