Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    This helped me. Not sure if my case is slightly different, but for me (change)="selectOrg(selectedOrg)" calls the function selectOrg with the current/previous selection, not the newly selected option. I figured out, I don't even need the (change) bit. Commented May 19, 2016 at 19:12
  • Good spotting. yes that's odd behaviour with (change) passing the old model. I thought it would be like ng-change maybe that's a bug in angular2. I've updated it to use get and set methods. That way in the set selectedOrgMod(value) method I can know that the organisation has changed and update my list of organisational teams. Commented May 20, 2016 at 5:36
  • works for me in Ang. 15 Commented Jan 27, 2023 at 16:51