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
Can't get this excellent tool to work for me when binding objects from cache to selectbox. When hitting F5 the value of the select is lost, the correct value is there but the select wont initiate correct.
Didn't help, whats going on is that above the upper drop a value is printed that's persisted in local storage, works fine on F5, but below that text the drop fails to initiate on that value "data-ng-init" should position the drop to the value printed above.
The lower drop is just there to test without local storage and works fine.
I believe the problem stems from the tracking mechanism angular uses with
object-based array of options. And, the version of angular you're using
doesn't have the "track by" feature which would allow you to map object
selections by an object property of your choosing, for example id. The only
solution I could think of was to force the store bound variable to
reference its matching object in the options array upon controller
instantiation. (see plunker)
Didn't help, whats going on is that above the upper drop a value is
printed that's persisted in local storage, works fine on F5, but below that
text the drop fails to initiate on that value "data-ng-init" should
position the drop to the value printed above.
The lower drop is just there to test without local storage and works fine.
Regards Andreas
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-40961198
.
Activity
cDima commentedon Apr 21, 2014
Not sure what's going on, but add the cookie dependency
http://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular-cookies.min.js
garagenisse commentedon Apr 21, 2014
Didn't help, whats going on is that above the upper drop a value is printed that's persisted in local storage, works fine on F5, but below that text the drop fails to initiate on that value "data-ng-init" should position the drop to the value printed above.
The lower drop is just there to test without local storage and works fine.
Regards Andreas
thombrg commentedon Apr 22, 2014
I believe the problem stems from the tracking mechanism angular uses with
object-based array of options. And, the version of angular you're using
doesn't have the "track by" feature which would allow you to map object
selections by an object property of your choosing, for example id. The only
solution I could think of was to force the store bound variable to
reference its matching object in the options array upon controller
instantiation. (see plunker)
http://plnkr.co/edit/RsS4ylLMKedC5iyA35z9?p=preview
On Mon, Apr 21, 2014 at 1:27 PM, garagenisse notifications@github.comwrote: