Basic layout and categories nav
This commit is contained in:
7
app/components/categories-nav/component.js
Normal file
7
app/components/categories-nav/component.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import Component from '@ember/component';
|
||||
|
||||
export default Component.extend({
|
||||
|
||||
categories: null
|
||||
|
||||
});
|
||||
9
app/components/categories-nav/template.hbs
Normal file
9
app/components/categories-nav/template.hbs
Normal file
@@ -0,0 +1,9 @@
|
||||
{{#if categories}}
|
||||
<nav>
|
||||
<ul>
|
||||
{{#each categories as |category|}}
|
||||
<li><a>{{category}}</a></li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</nav>
|
||||
{{/if}}
|
||||
Reference in New Issue
Block a user