Created
April 16, 2016 08:56
-
-
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
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
<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> |
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
<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