Dart Web Components

I have several questions regarding web components in Dart:

1.) How can we call a method of a component and above all, how to access a component instance? I know that we can provide properties to web components, but not how to call methods on them and get an instance of them.

2.) How can you manually instantiate a component? The reason is because I want to show that the modal form containing my component and every click wants the web component to be re-created to display the new content.

Thanks, Alex

+3


source to share


1 answer


For 1.) It seems to be done with document.query ('# my-component-id'). xtag

For 2.) It seems that it is possible by code, but too complicated at the moment



See also http://www.dartlang.org/articles/dart-web-components/spec.html for more information

+3


source







All Articles