here is my example http://plnkr.co/edit/oGnKUmg3LHE3wlkGrsqp?p=preview Hi I would like to display port-number and attributes when ever i call onchange function in the ng-select, in the above example every time i click add button the add new connection form will create and when ever i select the select options the port number and instance connection attributes are changed depends on the select option, but the when ever i sect the select option the port number and instance creation attributes changes on every new connection , any help ? see screen shots : ![enter image description here][1] ![enter image description here][2] |
Hi Sasi,
You have a problem with the inheritance of the scope. you are reusing the same scope variable inside your nested (ngRepeat creates new scopes)
So your connType will point to the same variable, until it is used inside your repeat.
You really should be using connectionTypeResource1.connType inside your repeater. (same issue but the other way arround for connectionPort.port!)
Regards
Sander
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/33Q8R0wrYms/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.