@aida wrote:
Hye…i am very new to ember and i had a problem in using the ember component. I am creating a component for my restaurant-listing. when i used that component to display my restaurant list it should displaying two card in a row but it not work like that. it just work fine till i used the component. i am trying to upload image and i cant post this topic when i add some image file. i only allowed to put a single image in a post.
so i only put the image when i used the component . it appear like this
this is my code in the restaurant-listing.hbs (component)
{{#link-to "show"}}{{restaurant.name}}
{{/link-to}}{{restaurant.hours}}
Cuisines: {{restaurant.cuisines}}Category: {{restaurant.category}}Description: {{restaurant.description}}
View Menu
and this is the code where i want to display the component
{{#each model as |restaurantUnit|}} {{restaurant-listing restaurant=restaurantUnit}} {{/each}}
Posts: 3
Participants: 3