mirror of https://github.com/status-im/consul.git
13 lines
321 B
JavaScript
13 lines
321 B
JavaScript
import Component from '@glimmer/component';
|
|
import { action } from '@ember/object';
|
|
import { tracked } from '@glimmer/tracking';
|
|
|
|
export default class ShadowHostComponent extends Component {
|
|
@tracked shadowRoot;
|
|
|
|
@action
|
|
attachShadow($element) {
|
|
this.shadowRoot = $element.attachShadow({ mode: 'open' });
|
|
}
|
|
}
|