UNPKG

@stencil/core

Version:

A Compiler for Web Components and Progressive Web Apps

1 lines 474 B
import{r as t,g as e}from"./p-c001178f.js";import{A as i}from"./p-5ada7d7c.js";class s{constructor(e){t(this,e),this.titleSuffix="",this.pageTitle=""}updateDocumentTitle(){const t=this.el;t.ownerDocument&&(t.ownerDocument.title=`${this.pageTitle}${this.titleSuffix||""}`)}componentWillLoad(){this.updateDocumentTitle()}get el(){return e(this)}static get watchers(){return{pageTitle:["updateDocumentTitle"]}}}i.injectProps(s,["titleSuffix"]);export{s as stencil_route_title};