You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a directive with a template that has a select with ngOptions, the presence of a css parameter seems to delay the link state of a directive such that ngOptions are parsed and set after a significant delay. This means that the ngModel value set on a directive isn't respected since there aren't
any values in the dropdown to compare against.
I just ran into a similar issue. The $timeout that @kaiku points out makes it harder to test custom directives that include CSS. Because the link function is deferred until the next turn, it's necessary to call $timeout.flush() in the test before the directive will link. This is unexpected and hard to debug.
Given a directive with a template that has a
select
withngOptions
, the presence of acss
parameter seems to delay thelink
state of a directive such thatngOptions
are parsed and set after a significant delay. This means that thengModel
value set on a directive isn't respected since there aren'tany values in the dropdown to compare against.
I've reproduced the issue in this Plunker: http://plnkr.co/edit/mDelhZqXeqhkTt55u51M
Angular 1.3.17 and angular-css 1.0.7
The text was updated successfully, but these errors were encountered: