Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
closeElement(tag: str) {
if (tag.indexOf('-') !== -1) {
let component = this.endComponent();
this.push([Ops.Component, tag, component]);
} else {
this.push([Ops.CloseElement]);
}
}