Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Passing a boolean to can component

$
0
0
What is the correct way to pass a boolean to a can component?

Please see this fiddle http://jsbin.com/gibih/1/edit

What I have tried:

#1

<client-list clients="{clients}" selectable="false">
<client-list clients="{clients}" selectable="true">

Select button shows in both as I am just passing a string.

#2 

<client-list clients="{clients}" selectable="{false}">
<client-list clients="{clients}" selectable="{true}">

Select button shows in none

#3

<client-list clients="{clients}" selectable="{{false}}"></client-list>
<client-list clients="{clients}" selectable="{{true}}"></client-list>

Select button shows in none

I would have expect for case #2 to work, but it doesn't. So what is the correct way to do it?

Thanks






Viewing all articles
Browse latest Browse all 3491

Trending Articles