Suppose I have some model instances, (that I don't call from an angularJS file but from my rails controller)
= f.fields_for :models, model do |builder|
%ul
= builder.hidden_field :some_id
= check_box_tag :id => "some_value"
I want to add some_value as a value to the hidden_field as soon as the checkbox is checked. How can I do that with angularJS ?