Created
January 10, 2018 17:24
-
-
Save ormasoftchile/d9dd9be51135122047f688fea0740801 to your computer and use it in GitHub Desktop.
Aurelia Gist
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> | |
<form> | |
<div class="form-group row"> | |
<label class="col-sm-4 control-label" for="States">State <span class="required">${required}</span></label> | |
<div class="col-sm-8"> | |
<select id="States" class="form-control"> | |
<option model.bind="null"></option> | |
<option repeat.for="state of states" model.bind="state.Id">${state.Name}</option> | |
</select> | |
</div> | |
</div> | |
</form> | |
</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 { | |
states; | |
constructor() { | |
// LoadLookup(); | |
this.states = [ | |
{ Id: '22C0BC0C-5998-E111-A9EE-000423B3BF41', Name: 'Alabama' }, | |
{ Id: '20C0BC0C-5998-E111-A9EE-000423B3BF41', Name: 'Alaska' }, | |
{ Id: '2EC0BC0C-5998-E111-A9EE-000423B3BF41', Name: 'Colorado' } | |
//...etc. Loads all U.S. states and territories. | |
]; | |
} | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Aurelia</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body aurelia-app> | |
<h1>Loading...</h1> | |
<script src="https://cdn.rawgit.com/jdanyow/aurelia-bundle/v1.0.3/jspm_packages/system.js"></script> | |
<script src="https://cdn.rawgit.com/jdanyow/aurelia-bundle/v1.0.3/config.js"></script> | |
<script> | |
System.import('aurelia-bootstrapper'); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment