seytechschool / restaurant-menu

Dynamic Restaurant Menu app in javascript.
1 stars 8 forks source link

Implement menu dynamically #2

Open maratgaip opened 3 years ago

maratgaip commented 3 years ago

Right now menu is hardcoded. We need to find out all categories and render dynamically.

maratgaip commented 3 years ago
<button class="filter-btn" type="button" data-id="all">all</button
        ><button class="filter-btn" type="button" data-id="breakfast">
          breakfast</button
        ><button class="filter-btn" type="button" data-id="lunch">lunch</button
        ><button class="filter-btn" type="button" data-id="shakes">
          shakes</button
        ><button class="filter-btn" type="button" data-id="dinner">
          dinner
        </button>

is hardcoded currently. We have make it dynamic. Get from product categories.