The server returns the data in the model of the angulyar
.success(function (response) { $scope.pageData = response; }) response is:
array(5) { [0]=> array(3) { ["order"]=> string(1) "1" ["isDone"]=> bool(true) ["title"]=> string(41) "Title1" } [1]=> array(3) { ["order"]=> int(2) ["isDone"]=> bool(false) ["title"]=> string(65) " Title2" } [2]=> array(3) { ["order"]=> int(3) ["isDone"]=> bool(false) ["title"]=> string(49) " Title3" } [3]=> array(3) { ["order"]=> int(4) ["isDone"]=> bool(false) ["title"]=> string(37) " Title4" } [4]=> array(3) { ["order"]=> int(5) ["isDone"]=> bool(false) ["title"]=> string(42) " Title5" } } How in a view will address the necessary element on an index?
For example <input ng-model='pageData[2]["isDone"]'/> - nothing
response имеет вид- it is in php it is, and how does it look in json? just output to the console and see - Grundy