Thanks @Ludeeus
No errors on bundling now, but still issues when trying to load it on the front-end
This commit is contained in:
Ian Richardson
2019-02-23 15:14:07 -06:00
parent 505c1841d3
commit 5a42d9644c
5 changed files with 16 additions and 14 deletions
+7 -7
View File
@@ -8,16 +8,16 @@ import {
css
} from "lit-element";
interface BOILERPLATEConfig {
interface BoilerplateConfig {
type: string;
}
@customElement("BOILERPLATE-card")
class BOILERPLATECard extends LitElement {
@customElement("boilerplate-card")
class BoilerplateCard extends LitElement {
@property() public hass?: any;
@property() private _config?: BOILERPLATEConfig;
@property() private _config?: BoilerplateConfig;
public setConfig(config: BOILERPLATEConfig): void {
public setConfig(config: BoilerplateConfig): void {
if (!this._config) {
// TODO Log error
}
@@ -31,7 +31,7 @@ class BOILERPLATECard extends LitElement {
}
return html`
<div>BOILERPLATE</div>
<div>boilerplate</div>
`;
}
@@ -42,6 +42,6 @@ class BOILERPLATECard extends LitElement {
declare global {
interface HTMLElementTagNameMap {
"BOILERPLATE-card": BOILERPLATECard;
"boilerplate-card": BoilerplateCard;
}
}