7 Matching Annotations
  1. Jan 2022
    1. Oh, I just figured out a workaround for my project, in case it helps someone. If you want the source of truth on the prop to come from the child component, then leave it undefined in the parent. Then, you can make the reactive variable have a condition on the presence of that variable. eg: <script> let prop; $: prop && console.log(prop); </script> <Child bind:prop/> Might not work for every use case but maybe that helps someone.
  2. Jan 2021
  3. Dec 2020
    1. Binding In a nutshell, the purpose of this is to update the variable programmatically or when the DOM element/components updates it.
  4. Sep 2020