Displaying 1 result from an estimated 1 matches for "batarang".
Did you mean:
batang
2014 Mar 14
0
AngularJS options with a simple_form checkbox
...it like this:
=f.input :super_admin , label: false, checked_value: true, unchecked_value:
false, as: :boolean,:input_html=>{"ng-model"=>"superadmincbx"}
but my ng-hide does not work.
%span{"ng-hide"=>"superadmincbx"}
I'm also using the Batarang and checking/unchecking the checkbox does not
trigger the corresponding changes in the scoped item. However, in my
controller, if I add
$scope.superadmincbx = true;
it get's picked up by the checkbox(it's checked) and ng-hide works. What am
I not seeing/doing wrong? I also have a dr...