These are chat archives for canjs/canjs

21st
Oct 2018
Julian
@pYr0x
Oct 21 2018 11:04
is there a way to check in stache multiple conditions with AND or OR ? currently i using nested IF's
{{#if (entnahmestelleStagingDetailsPromise.isResolved)}}
        {{#if (entnahmestelleMDMDetailsPromise.isResolved)}}
but thats a mess
Viktor Busko
@Lighttree
Oct 21 2018 13:47
I use "eq" sometimes if logic can be built with it {{#eq somethin.isResolved something.isResolved true}} this kind of stuff works
but this doesnt cover all cases of course
Jeroen Cornelissen
@jeroencornelissen
Oct 21 2018 19:04
@pYr0x I use a getter in my VM. get fooAndBar() { return this.foo && this.bar; }