whayler1 / rivets-example Goto Github PK
View Code? Open in Web Editor NEWA rivets js tutorial
A rivets js tutorial
I think it's worth noting in the tutorial that formatters must be defined before binding objects to html otherwise they won't work.
...
<div id="candy-shop">
<h1 rv-text="data.title"></h1>
<h3>Products</h3>
<ul>
<li rv-each-product="data.products">
<h3 rv-text="product.title"></h3>
<var rv-text="product.price"></var>
<button type="button">Add to bag</button>
</ul>
</div>
...
I think you should close the <li>
.
Thx mate. Very useful doc.
That's a really great tutorial for noobs like me!
Leave some info about how can I thank you with a small donation.
I think you should try to explain more in detail how the binding works, and where each variable nam comes from.
Binding data to data doesn't tell you which one is the name you should use in the html and which one is the content that is found in the js
I tried binding as bound: data and using "bound" in the html instead of "data", it worked fine untill the point where I began the two-way binding. But the shopping bag didn't work until i reverted everything in the the html back to "data" and changed the binding in the js, and I wasn't entirely able to understand why. Did I need to use "bound" in the js file somewhere in the controller{ } ?
Thanks for this great tutorial, is was much more clear than just reading the rivets.js documentation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.