These are chat archives for canjs/canjs

25th
Dec 2016
Frank Lemanschik
@frank-dspeed
Dec 25 2016 13:39
does any one know the current way to use jquery in can3? inside a stache?
can i bind for example jQuery from viewModel into a stache and there simply add script tags?
i have some bigger codebase using localstorage and that would be the easyest way to do it client side only
Frank Lemanschik
@frank-dspeed
Dec 25 2016 13:57
ah no matter i think its still on can-define/map jQuery: $ and use jQuery in stache
Mohamed Cherif Bouchelaghem
@cherifGsoul
Dec 25 2016 15:55
@frank-dspeed inside stache?!!! maybe you should use a stache helper
Frank Lemanschik
@frank-dspeed
Dec 25 2016 15:55
@cherifGsoul i think thats depricated and not needed
i was only wondering if there is now a new better way then exporting it via viewModel (can-define/map/)
Mohamed Cherif Bouchelaghem
@cherifGsoul
Dec 25 2016 15:56
Frank Lemanschik
@frank-dspeed
Dec 25 2016 15:57
ah from can stache helpers tought your talking about can-jquery
Mohamed Cherif Bouchelaghem
@cherifGsoul
Dec 25 2016 15:58
@frank-dspeed what's your use-case?
Frank Lemanschik
@frank-dspeed
Dec 25 2016 15:58
i have it working my use case was simply porting some knockout related code
that uses jquery
Mohamed Cherif Bouchelaghem
@cherifGsoul
Dec 25 2016 16:00
Frank Lemanschik
@frank-dspeed
Dec 25 2016 16:00
yes
isn't it?
Mohamed Cherif Bouchelaghem
@cherifGsoul
Dec 25 2016 16:00
I dont see that is mentionned
and the last docs modification was from 25 days, I think is still supported
Mohamed Cherif Bouchelaghem
@cherifGsoul
Dec 25 2016 16:17
@frank-dspeed you may check http://canjs.com/doc/can-util.html for can/util/domdom modules
Frank Lemanschik
@frank-dspeed
Dec 25 2016 16:22
nice tip thanks looks usefull