javascript - Angular JS ng-options dont take value -
I'm trying to do something for some time in the current project, but somehow it does not work anymore.
I have an array in the objects:
$ scope.teacherList = [{"id": 1, "first name": "dave", "last name" : "SquarePaint"}, "", "first name": "patrick", "last name": "star"}]
Now I make a select box with ng-option I:
& lt; Select name = "teacher" ng-model = "crudTeacher.teacher.id" ng-option = "teacher.id as teacher. First name +" + teacher Teacher Teacher Name Teacher List "Required" >>
But when I look at the values, only 0 and 1, even if Id 1 and 2.
Angle does not take any kind of teacher ... ... properly part.
Am I missing something?
According to me, the sample displays the correct value:
Comments
Post a Comment