This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="./greeter"></require> | |
<greeter></greeter> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class App{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="./info-card"></require> | |
<h1>${message}</h1> | |
<hr/> | |
<info-card></info-card> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head></head> | |
<body> | |
<template id="info-card"> | |
<style> | |
.card-content { | |
border:1px solid grey; | |
width: 500px; | |
height: 150px; | |
margin-bottom:10px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<template id="info-card"> | |
</template> | |
<script> | |
class XInfoCard extends HTMLElement { | |
// Monitor the 'message' attribute for changes. | |
static get observedAttributes() { return ['message']; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<template id="info-card"> | |
</template> | |
<script> | |
class XInfoCard extends HTMLElement { | |
// Monitor the 'message' attribute for changes. | |
static get observedAttributes() { return ['message']; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<template id="info-card"> | |
</template> | |
<script> | |
class XInfoCard extends HTMLElement { | |
// Monitor the 'message' attribute for changes. | |
static get observedAttributes() { return ['message']; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<template id="info-card"> | |
</template> | |
<script> | |
class XInfoCard extends HTMLElement { | |
// Monitor the 'message' attribute for changes. | |
static get observedAttributes() { return ['message']; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="./table-filter"></require> | |
<h1>${message}</h1> | |
<hr/> | |
<table class="table table-bordered table-striped"> | |
<thead> | |
<tr> | |
<th></th> | |
<th>Name</th> | |
<th>City</th> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<require from='./info-card.html'> <!-- import the info-card component --> | |
<info-card> | |
<span slot="header"> | |
<h1>${card1Header}</h1> | |
</span> | |
<span slot="body"> | |
<span>${card1Body}</span> | |
</span> | |
</info-card> |