M
M
Michael2016-07-14 23:33:18
Angular
Michael, 2016-07-14 23:33:18

Why doesn't the model change?

There is a list with radio (displayed via ng-repeat), for the list element there is a model in which:

{
    radioValue: 0
}

I made a radio with the same name so that only 1 can be selected. When I select the desired one, the radioValue is set to "1", and the previously selected one becomes unselected, but the value "1" remains in its model, although "0" is needed.
Where is the mistake?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Kondratiev, 2016-07-14
@springimport

angular is dictative ) radio

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question