component
ericxin1982 opened this issue · comments
Hi Team,
So just wondering whether there is a full example for component where I can learn?
Thanks
Eric Xin
Hi, does the Guide misguide you or just want to see a plunker?
http://rivetsjs.com/docs/guide/#components
In the JST
part you simply provide a template. This has to be a string containing HTML that uses normal rivets bindings etc. In my case it is:
template: function() {
return $id('member-list-template').innerHTML
},
and the template is injected into <head>
part of website by PHP:
<script type="text/html" id="member-list-template">{{ View::make('club/member-list') }}</script>
would you mind giving me the a whole picture, I am confused. @Namek
Hi, sorry fo taking so long. You may learn about components here:
https://www.namekdev.net/2017/05/binding-with-rivets-js-details-and-tricks/
or go straight to live example:
http://plnkr.co/edit/gXNQuwXDuJHUHvYsppyh?p=preview
The live example was already mentioned between issues so you didn't dig well enough:
#691
Please consider closing this issue.
Looks like @Namek has replied fully, please reopen if you need.