You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the content directive in a component, the same way I would use transclusion in angularjs. However, the issue I'm running into is that when I put a dom event on an element that is in the content directive, it tries to call the method on the incorrect ractive instance (the one that has the {{>content}} in its template). Instead it should call the method on the ractive instance that is providing the content to the generic class.
Click on the first alert button (notice it works, because the button is outside of the content directive)
Click on the second alert button, it doesn't work and you get the following error: Uncaught Error: Attempted to call a non-existent method
Expected Behavior:
It should call the method on the ractive instance that is providing the content to the content directive. It should not call the method on the generic instance that has the content directive.
The text was updated successfully, but these errors were encountered:
I'm trying to use the content directive in a component, the same way I would use transclusion in angularjs. However, the issue I'm running into is that when I put a dom event on an element that is in the content directive, it tries to call the method on the incorrect ractive instance (the one that has the {{>content}} in its template). Instead it should call the method on the ractive instance that is providing the content to the generic class.
To reproduce this issue:
Expected Behavior:
It should call the method on the ractive instance that is providing the content to the content directive. It should not call the method on the generic instance that has the content directive.
The text was updated successfully, but these errors were encountered: