How to set Pre selected data in dynamic select option in IONIC

前端 未结 1 1532
再見小時候
再見小時候 2021-01-29 00:16

I face a strange problem where I need to show Pre selected data(which also come from server) in select option. The problem that I need to show select option based on key and val

1条回答
  •  青春惊慌失措
    2021-01-29 00:44

    Firt, your JSON is not a array of objects. I dont know if work in a

    What I do was use track by role.code, as you can watch in this video.

    REMEMBER: If code reapet in the array of objects it will break the

    提交评论

提交回复
热议问题