-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify null and undefined serialization binding behavior in docs #204
Comments
Andrew sayz:
|
Casey sayz:
But Casey is wrong :( because |
Note these two are exactly equivalent for the purpose of CSS selectors and JS introspection:
|
Consider reworking
|
Directive overhaul is planned in v2:
|
Changes: * Adding `??attr` binding syntax. * Chaning `ifDefined` to delete attr on `null` as well as `undefined`. * Deprecating `ifDefined` / `nullish` in favor of `??attr` binding. * Deprecating `repeat` in favor of `map`. * Updating documentation. Closes #204.
Changes: * Adding `??attr` binding syntax. * Changing `ifDefined` to delete attr on `null` as well as `undefined`. * Deprecating `ifDefined` / `nullish` in favor of `??attr` binding. * Deprecating `repeat` in favor of `map`. * Updating documentation. Closes #204.
Changes: * Adding `??attr` binding syntax. * Changing `ifDefined` to delete attr on `null` as well as `undefined`. * Deprecating `ifDefined` / `nullish` in favor of `??attr` binding. * Deprecating `repeat` in favor of `map`. * Updating documentation. Closes #204.
Changes: * Adding `??attr` binding syntax. * Changing `ifDefined` to delete attr on `null` as well as `undefined`. * Deprecating `ifDefined` / `nullish` in favor of `??attr` binding. * Deprecating `repeat` in favor of `map`. * Updating documentation. Closes #204.
Changes: * Adding `??attr` binding syntax. * Changing `ifDefined` to delete attr on `null` as well as `undefined`. * Deprecating `ifDefined` / `nullish` in favor of `??attr` binding. * Deprecating `repeat` in favor of `map`. * Updating documentation. Closes #204.
Changes: * Adding `??attr` binding syntax. * Changing `ifDefined` to delete attr on `null` as well as `undefined`. * Deprecating `ifDefined` / `nullish` in favor of `??attr` binding. * Deprecating `repeat` in favor of `map`. * Updating documentation. Closes #204.
Related to your ask for examples / documentation on |
Changes: * Adding `??attr` binding syntax. * Changing `ifDefined` to delete attr on `null` as well as `undefined`. * Deprecating `ifDefined` / `nullish` in favor of `??attr` binding. * Deprecating `repeat` in favor of `map`. * Updating documentation. Closes #204.
Changes: * Adding `??attr` binding syntax. * Changing `ifDefined` to delete attr on `null` as well as `undefined`. * Deprecating `ifDefined` / `nullish` in favor of `??attr` binding. * Deprecating `repeat` in favor of `map`. * Updating documentation. Closes #204.
Changes: * Adding `??attr` binding syntax. * Changing `ifDefined` to delete attr on `null` as well as `undefined`. * Deprecating `ifDefined` / `nullish` in favor of `??attr` binding. * Deprecating `repeat` in favor of `map`. * Updating documentation. Closes #204.
Changes: * Adding `??attr` binding syntax. * Changing `ifDefined` to delete attr on `null` as well as `undefined`. * Deprecating `ifDefined` / `nullish` in favor of `??attr` binding. * Deprecating `repeat` in favor of `map`. * Updating documentation. Closes #204.
Changes: * Adding `??attr` binding syntax. * Changing `ifDefined` to delete attr on `null` as well as `undefined`. * Deprecating `ifDefined` / `nullish` in favor of `??attr` binding. * Deprecating `repeat` in favor of `map`. * Updating documentation. Closes #204.
Changes: * Adding `??attr` binding syntax. * Changing `ifDefined` to delete attr on `null` as well as `undefined`. * Deprecating `ifDefined` / `nullish` in favor of `??attr` binding. * Deprecating `repeat` in favor of `map`. * Updating documentation. Closes #204.
There are some nuances regarding binding
null
andundefined
binding behavior in XElement — philosophically we want to leverage (and not augment) the browser's behavior.Add detailed info here: https://github.com/Netflix/x-element/blob/main/doc/TEMPLATES.md
Maybe update the philosophy: "Please do not make me learn anything proprietary about the framework unless it is absolutely necessary!"
Consider:
Perhaps the structure of the docs ought to be like "How do I ..."
<a href="">
)The text was updated successfully, but these errors were encountered: