Skip to content

Instantly share code, notes, and snippets.

@GianlucaGuarini
Created April 16, 2016 08:56
Show Gist options
  • Save GianlucaGuarini/df86f25cfbe72b423a37eeaec340f113 to your computer and use it in GitHub Desktop.
Save GianlucaGuarini/df86f25cfbe72b423a37eeaec340f113 to your computer and use it in GitHub Desktop.
React angular2 templates translated to riot check also https://twitter.com/gianlucaguarini/status/720961715903578112
<my-form>
<form onsubmit={ onSubmit }>
<div class="form-group">
<label for="name">Name</label>
<input class="form-control" required name="name" id="name" onchange={ changeName }>
</div>
<button type="submit" disabled={ !isValid }>Submit</button>
</form>
</my-form>
<my-tag>
<div class="card">
<img src="mao.jpg" />
<p>Mao</p>
</div>
<style scoped>
.card {
cursor: pointer;
margin: 15px;
padding: 15px;
text-align: center;
height: 200px;
}
img {
width: 130px;
height: 130px;
}
p {
margin: 10px;
}
</style>
</my-tag>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment