Hello. There is ng: repeat, created by json (methods), inside it creates a series of radio buttons that are characterized by iteration (method).
Below, I need to create a variable in which the method of the selected radio button will lie, for later use. I sketch a template for clarity.
<li ng:repeat="method in methods"> <label> <input type="radio" ng:model="$parent.deliveryMethod" ng:value="method" /> </label> </li> <table ng:init="myValue = deliveryMethod.price | format"> <tr> <td ng:bind="myValue"></td> </tr> </table> I hope the essence is clear. The problem is that, as I understand it, ng: init is triggered before the methods have time to form.
How to be? Thank.
methods. And also explain in more detail what you need? If you write in thedeliveryMethodmethodvalue, then it will be there. - Stepan Kasyanenko