Open Dannybrown2710 opened 4 years ago
Did you try:
<script> var ce = document.createElement('custom-element'); ce['elem'] = {complex:2}; document.body.appendChild(ce); </script>
It's working for me
@kondi0 no it still shows undefined for me. Did you try from the same project structure? I have a forked version if you want to have a look here?
@kondi0 Does your code works with built package?
Hi @manfredsteyer , This is my app component file (taken from cli8 branch sample)
and this is my index.html file
My query is I am getting undefined for this.elem in both ngOnInit and onClick. Is there any way to pass a configuration type object to a custom element?