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="./modal-form"></require> | |
<h1>Aurelia Custom Element with Modal Form</h1> | |
<button class="btn btn-success btn-large" click.delegate="openModal()">New Item</button> | |
<button class="btn btn-primary btn-large" click.delegate="openModal(1)">Edit Item</button> | |
<div class="form-group"> | |
<label for="my-input">#my-input</label> | |
<input type="text" class="form-control" id="my-input"> | |
</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> | |
<h1>Hello, ${fname}!</h1> | |
</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-fluid"> | |
<h1>Hello, ${fname}!</h1> | |
</div> | |
</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> | |
<h1>Hello, ${fname}!</h1> | |
<ul> | |
<li><a href="#page1">Page 1</a></li> | |
<li><a href="#page2">Page 2</a></li> | |
</ul> | |
<router-view></router-view> |
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="styles.css"></require> | |
<require from="tree-view"></require> | |
<tree-view></tree-view> | |
</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> | |
<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> |
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> | |
<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-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> | |
<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>--> |
OlderNewer