These are chat archives for canjs/canjs

11th
Apr 2018
Mohamed Cherif Bouchelaghem
@cherifGsoul
Apr 11 2018 00:12
Hi guys, I'm looking for ideas how to fake google maps services (places, maps ...etc) in order to test a canjs component!
Marc Godard
@MarcGodard
Apr 11 2018 02:23
Hi guys, I have can-route and can-route-pushstate in my canjs 4 app working perfectly, however, I am trying to run a tracking function when the route changes. I tried to track the variables on the main viewModel, but the tracking changes multiple times when you change the route with multiple variables (page, slug, and target). Is there a way to track any route changes and only fire it once? I have tried many things.
Marc Godard
@MarcGodard
Apr 11 2018 14:30
Anyone?
Kevin Phillips
@phillipskevin
Apr 11 2018 14:33
how are you running the function now?
Kevin Phillips
@phillipskevin
Apr 11 2018 14:41
I would probably do something like this: https://jsbin.com/vecolitopa/edit?js,output
Marc Godard
@MarcGodard
Apr 11 2018 15:39
@phillipskevin thanks, will give that a try