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

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