This file contains 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="./my-dropdown"></require> | |
<div class="container-fluid"> | |
<h1>Hello, ${fname}!</h1> | |
Number: ${num} | |
<my-dropdown value.bind="num" enum-list.bind="enums"></my-dropdown> | |
<br> | |
Change value: | |
<button click.delegate="setNum(1)">1</button> | |
<button click.delegate="setNum(2)">2</button> |
This file contains 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="./registration-form"></require> | |
<registration-form></registration-form> | |
</template> |
This file contains 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> | |
<nav class="navbar navbar-default navbar-fixed-top"> | |
<div class="container-fluid"> | |
<ul class="nav navbar-nav"> | |
<li><a href="#/home">Home</a></li> | |
<li><a href="#/square">Square</a></li> | |
<li><a href="#/circle">Circle</a></li> | |
</ul> | |
</div> | |
</nav> |
This file contains 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> | |
<nav class="navbar navbar-default navbar-fixed-top"> | |
<div class="container-fluid"> | |
<ul class="nav navbar-nav"> | |
<li><a href="#/home">Home</a></li> | |
<li><a href="#/square">Square</a></li> | |
<li><a href="#/circle">Circle</a></li> | |
</ul> | |
</div> | |
</nav> |
This file contains 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> | |
<nav class="navbar navbar-default navbar-fixed-top"> | |
<div class="container-fluid"> | |
<ul class="nav navbar-nav"> | |
<li><a href="#/home">Home</a></li> | |
<li><a href="#/square">Square</a></li> | |
<li><a href="#/circle">Circle</a></li> | |
</ul> | |
</div> | |
</nav> |
This file contains 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> | |
<nav class="navbar navbar-default"> | |
<div class="container-fluid"> | |
<!--<div class="collapse navbar-collapse">--> | |
<ul class="nav navbar-nav"> | |
<li repeat.for="row of router.navigation" class="${row.isActive ? 'active' : ''}"> | |
<a href.bind="row.href">${row.title}</a> | |
</li> | |
</ul> | |
<!--</div>--> |
This file contains 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> | |
<div class="container-fluid"> | |
<h1>Table Method</h1> | |
<table width="100%"> | |
<td> | |
<div repeat.for="field of myData" if.bind="field.order % 2"> | |
<p><b>${field.Key}:</b> ${field.value}</p> | |
</div> | |
</td> | |
<td> |
This file contains 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="./registration-form"></require> | |
<registration-form></registration-form> | |
</template> |
This file contains 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> | |
<div class="container"> | |
<h1>Hello, ${fname}!</h1> | |
<form> | |
<div class="form-group"> | |
<label class="control-label">Name input (no change event on input):</label> | |
<input type="text" class="form-control" value.bind="fname"> | |
</div> | |
<div class="form-group"> | |
<label class="control-label">Name input (change and keyup events on input):</label> |
This file contains 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> | |
<h1>Hello, ${fname}!</h1> | |
<hr> | |
<label repeat.for="option of options"> | |
<input type="radio" name="opta" model.bind="option" checked.bind="$parent.selectedOption"> | |
${option.value}<br> | |
</label> | |
Selected: <strong>${selectedOption.id} (${selectedOption.value})</strong> | |
</template> |
NewerOlder