/**
* Gets the first element with a `data-template` attribute.
* If the element exists get the template name.
* Return the templates name or our missing name value.
* @returns string
*/
private getTemplateName(): string{
let templateName = 'MISSING_TEMPLATE_NAME';
const templateEl = html.querySelector('[data-template]');
if(templateEl){
templateName = templateEl.getAttribute('data-template');
}
return templateName;
}
TransitionManager.ts