regular-hub is Component Hub for all components created by regularjs
You need to initialize all components via new Component
.
new Pager({
})
now, you can use regular-hub as boots for all components in pages. all component can initialized throungh directive way, just like you use component as nested component.
just like nested component. you can initializing a component in directive way.
<body>
<pager current=1 total={{todos.length}} />
<div class="g-sd">
<todomvc todos={{todos}} />
</div>
... other components scattered in pages ...
</body>
...
new Hub({
data: {
todos: [...]
}
})
Warning: Only component can be booting by Hub Component, you can't booting other stuff by it.