If I have a child control (or grandchild in this case) that looks like this:
<my-control region-id.two-way="location.regionId"></my-control>
When can I expect regionId
to be available? The docs sound like bind and then attached happens so shouldn't regionId
be set prior to attached happening?
I have added some logging to the bind
, attached
, and regionIdChanged
events and looking at the console, I see
bind
attached
regionIdChange to null from undefined (default value in a dropdown)
regionIdChange to 1 from null (1 is the actual value)
I would have expected regionId
to be 1 prior to attached
happening. Is this the expected behavior?