added ng-change to my-label-input
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 24 Jan 2013 14:40:37 +0000 (15:40 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 24 Jan 2013 14:40:37 +0000 (15:40 +0100)
app/js/directives.js

index ac273fe..c4bed57 100644 (file)
@@ -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>';