These are chat archives for canjs/canjs

9th
May 2018
Justin Meyer
@justinbmeyer
May 09 2018 11:29
Added a can-stache / can-stache-bindings cheat sheet: https://canjs.github.io/next/doc/api.html#Views
Julian
@pYr0x
May 09 2018 17:13
@justinbmeyer can-slot and can-template does not work with the new automount component
something like this in my clasic html page does not work
<div class="content box">
            <my-counter count:from="5">
                <can-template name="incrementButton" this:from="this">
                    <button on:click="add(5)">ADD 5!</button>
                </can-template>
                <can-template name="countDisplay">
                    You've counted to {{count}}!
                </can-template>
            </my-counter>
</div>
Julian
@pYr0x
May 09 2018 18:06
can i access the element in the viewmodel of my component without adding the element on connectedCallback to the viewmodel first?
connectedCallback(el) {
      this.el = el;
    }
Chasen Le Hara
@chasenlehara
May 09 2018 18:16
No, that has been requested though: canjs/canjs#4081
Justin Meyer
@justinbmeyer
May 09 2018 21:35
@julian yeah, those aren’t currently supported