Accessing the $parent properties and functions from the child init() no longer works in 1.0.0
See original GitHub issueAccessing properties and functions from $parent
in the child init()
function works in version 0.6.0. It no longer works in 1.0.0 so this might be a regression.
0.6.0 (works) : https://codepen.io/pomartel/pen/jOVaZKX 1.0.0 (broken): https://codepen.io/pomartel/pen/bGBYLmx
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Angular - trying to use child component function in parent view ...
When I use @ViewChildren I get the error that the function from that component is not a function. I am new to using...
Read more >Spring Boot Reference Documentation
Typically, your Maven POM file inherits from the spring-boot-starter-parent project and declares dependencies to one or more “Starters”.
Read more >Python Inheritance - W3Schools
Python Inheritance. Inheritance allows us to define a class that inherits all the methods and properties from another class. Parent class is the...
Read more >API Reference - Roact Documentation
Creates a Roblox Instance given a Roact element, and optionally a parent to ... If children contains more than one child, oneChild function...
Read more >Groovy Language Documentation
A touch of formalism; Benefits of monoids; Working with Non-monoids ... Parent classes share visible fields, properties or methods with child classes.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It will always work, requestAnimationFrame would work as well. It just needs to release the main thread of execution so the parent can carry on. Js is single threaded, setTimeout is just a close match. By the time it gets the control back, parent will be fully available. I’ll keep you posted if we can make it work again, keeping the enhanced functionalities. If we can’t do anything, we’ll need to mention it in the doc for other developers.
Great, thanks for your help!