Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4840

Ember component issue i am facing

$
0
0

@light44 wrote:

Hello ,

I have a component {{table-royal data=data}} data contains an json array {[“name”:“king”],[“name”:“queen”]} in controller. now inside this component there is table and each row the table contains a dropdown of year having [“1910,1920,…”]… i have a action defined on the click of the dropdown which gives me the selection , then set “isFilter” true property in that data array eg. if king is selected {[“name”:“king”, “isFilter”:“true”],[“name”:“queen”]}

then in hbs of component i have

{{#if data.FilterCriteria equals true}}//equals is a helper

             {{catalog.isFilter}}

{{else}}

{{ dropdown}}

but the component always show dropdown

even i have console.log the data …it show the is Filter property set

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4840

Trending Articles