You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui-v2/app/utils/get-component-factory.js

10 lines
220 B

export default function(owner, key = '-view-registry:main') {
const components = owner.lookup(key);
return function(el) {
const id = el.getAttribute('id');
if (id) {
return components[id];
}
};
}