Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

attrs.$observe does not work if ng-options is attached to element #4604

Closed
romario333 opened this issue Oct 23, 2013 · 2 comments
Closed

attrs.$observe does not work if ng-options is attached to element #4604

romario333 opened this issue Oct 23, 2013 · 2 comments

Comments

@romario333
Copy link

I have test directive which accepts interpolated value:

<select ng-options="item for item in items" ng-model="selectedItem" test="hello {{selectedItem}}"></select>

test directive uses attrs.$observe to watch for changes of interpolated value. After upgrade to 1.2.0-rc.3 this no longer works (I get non-interpolated value). In 1.2.0-rc.2 it works ok.

Demo: [http://plnkr.co/edit/UIzTuZJPkvW6umPJ4S22?p=preview]

@romario333
Copy link
Author

Note that this bug seems to be very similar to issue #4525 and #4528

@IgorMinar
Copy link
Contributor

fixed already in master: http://plnkr.co/edit/ABUXd5Snqr9sbsbetKrm?p=preview

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants