Join Slack
Powered by
Hello. I need to use a class to register a custom...
# javascript
t
Tristan Caron
10/09/2016, 7:23 PM
Hello. I need to use a class to register a custom element. I do
window["customElements"]["define"]("my-element", MyElement::class)
but of course it's not working (
::class
not working for the moment), do you have an alternative? Thx
Open in Slack
Previous
Next