diff --git a/README.md b/README.md index 9d9b33b..80cec04 100644 --- a/README.md +++ b/README.md @@ -51,15 +51,15 @@ A [Product Hunt](http://producthunt.com) clone built in Meteor Ionic. * [ ] ion-delete-button * [ ] ion-reorder-button * [ ] ion-option-button - * [ ] collection-repeat + * [x] collection-repeat (not needed with Blaze/Spacebars) * [x] Loading * [x] Modal * [ ] Navigation (requires [iron:router](https://github.com/EventedMind/iron-router) integration) * [x] ion-nav-view * [x] ion-view - * [ ] ion-nav-bar + * [x] ion-nav-bar * [ ] ion-nav-buttons - * [ ] ion-nav-back-button + * [x] ion-nav-back-button * [ ] nav-clear * [ ] Platform * [x] Popover @@ -75,6 +75,6 @@ A [Product Hunt](http://producthunt.com) clone built in Meteor Ionic. * [x] menu-toggle * [x] menu-close * [ ] Slide Box -* [ ] Tabs (requires [iron:router](https://github.com/EventedMind/iron-router) integration) +* [x] Tabs (requires [iron:router](https://github.com/EventedMind/iron-router) integration) * [x] ion-tabs - * [ ] ion-tab + * [x] ion-tab diff --git a/components/ionTab/ionTab.html b/components/ionTab/ionTab.html new file mode 100644 index 0000000..6a4fe33 --- /dev/null +++ b/components/ionTab/ionTab.html @@ -0,0 +1,10 @@ + diff --git a/components/ionTab/ionTab.js b/components/ionTab/ionTab.js new file mode 100644 index 0000000..5948398 --- /dev/null +++ b/components/ionTab/ionTab.js @@ -0,0 +1,11 @@ +Template.ionTab.helpers({ + url: function () { + if (this.href) { + return this.href; + } + + if (this.path) { + return Router.routes[this.path].path(Template.parentData(1)); + } + } +}); diff --git a/package.js b/package.js index 489d2e6..69b886e 100644 --- a/package.js +++ b/package.js @@ -87,6 +87,9 @@ Package.onUse(function(api) { "components/ionTabs/ionTabs.html", "components/ionTabs/ionTabs.js", + "components/ionTab/ionTab.html", + "components/ionTab/ionTab.js", + "components/ionView/ionView.html", "components/ionView/ionView.js" ], "client");