add ng-change to my-label-input
[angular-drzb] / 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>';