Skip to content
Advertisement

angular js ui-select option repeat not working for object array

I am using Angular ui-select. My model & ui-select option array are different. While changing value its not updated and not displaying options. I am storing the selected object Id in “pmpo”, I want to show the selected object from the pmptnk object array when loading. But is not working. Some one tell what I am doing wrong.

My object from Model

JavaScript

In view file

JavaScript

Advertisement

Answer

I worked on your code.I tried it out in different way. Below is my code snippet:

JavaScript

and i changed my model as below:

JavaScript

This worked fine for me.

Advertisement