Last active
October 7, 2021 09:41
-
-
Save ef4/8367f996eb7b57d1f7a5 to your computer and use it in GitHub Desktop.
Goodbye old Select View
Trying to use this example... but i don't think the eq is working for me.. in that example i tried testing it by making it the text in the select box (both the values seem to be the same but it never triggers that they are equal)
It was my bad! my menuable_id was numeric... so i just changed it to a string and it worked. It should work for me because all ids within ember are strings anyways....
Haven't tried this out on my end yet, but was just curious. If target.value
is already set, will it automatically select the value when the view renders?
@jkgisme:
DEPRECATION: Using '@guid' with the {{each}} helper, is deprecated. Switch to '@identity' or remove 'key=' from your template.
(Ember 1.13.6)
amazing job. Thank you.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can just use
key="@guid"
everywhere for now. There isn't much documentation but the different key values depend on the type of item being iterated over. If they don't have a unique identifier then @Guid will generate one, if they do have a unique identifier then @Guid will use that. There is a pr to make hbs default to the appropriate key so you don't have to set it yourself.Most of the explanations about this that I've seen were just on Slack.