Good day! Tell me, please, how can I implement the execution of some action in a function in the controller with the checked / unchecked checkbox? Say, when you press the button, the button is ng-click="имя_вызываемой_функции(передаваемые_параметры)" , and in the controller the function itself, and how to do the same for the checkbox? Moreover, to transfer its status is set / not set, or, depending on the state, to call two different functions.
And how to set the initial value of the checkbox?