These are chat archives for canjs/canjs

7th
Sep 2015
avg6003
@avg6003
Sep 07 2015 04:57
Can anyone tell me what is the use of ' ! ' in defining the routes?
Chris Gomez
@akagomez
Sep 07 2015 04:59
Where is it documented that you should use “!” to define routes?
avg6003
@avg6003
Sep 07 2015 05:00
i am reading from here http://canjs.com/guides/Routing.html
It says to define a route I have to use '#!' in begining of the rout
what is the reason to use '!' ?
I tried without using !
its working but it automatically takes !
when i press back button then it first adds ! and then I press again the back button then it goes to previous route
Chris Gomez
@akagomez
Sep 07 2015 05:02
Ah! I see. I can’t say. I’ve only worked with pushstate routing.
avg6003
@avg6003
Sep 07 2015 05:03
do you know any source where I can find the reason?
avg6003
@avg6003
Sep 07 2015 05:05
thanx
let me check
avg6003
@avg6003
Sep 07 2015 05:29
I didnt found any information about my question!!
Guido Smeets
@gsmeets
Sep 07 2015 07:08
@akagomez a bit later than I wanted to, but here is that fix for the component's destroy method: bitovi/canjs#1886
kiwi1342
@kiwi1342
Sep 07 2015 20:22
for can.components sometimes is stated that we should use the 'scope' object
and other times 'viewModel'
viewModel is more explicit and understandable. Is it obsolete to use it?
Mohamed Cherif Bouchelaghem
@cherifGsoul
Sep 07 2015 21:15
can.view.tag has not it's own scope!! is there way to make this happened without using component?
Guido Smeets
@gsmeets
Sep 07 2015 22:22
@kiwi1342 scope will be deprecated in 3.0, use viewModel instead
kiwi1342
@kiwi1342
Sep 07 2015 22:42
Wow. Good to know thx. One small suggestion: please work on canjs documentation. Canjs has great chances to compete with other more notorious frameworks such as backbone, knockout, react/flux. It has clear
It has clear advantages on performances and it's very easy to understand but it lacks in good tutorials.
kiwi1342
@kiwi1342
Sep 07 2015 22:44
This message was deleted
Mohamed Cherif Bouchelaghem
@cherifGsoul
Sep 07 2015 22:47
@kiwi1342 I think Canjs is simple and easy to understand the trick is you have to see the whole application as composite from several components (Widgets) and glue those components with an application state (routing)
kiwi1342
@kiwi1342
Sep 07 2015 22:47
One example is the place-my-order app which is not completed yet. In the component first page there are two videos which use the scope property. If obsolete they should be removed or filmed again with the new properties. I'm sorry if I sound too harsh but I really believe in canjs potential and have great expectations!
kiwi1342
@kiwi1342
Sep 07 2015 23:17
@cherifGsoul you are absolutely right and that's what I was looking for for the past month. I've also asked for help on the JavaScriptmvc forum but no replies. https://forum.javascriptmvc.com/#Topic/32525000001855001
Mohamed Cherif Bouchelaghem
@cherifGsoul
Sep 07 2015 23:19
@kiwi1342 did you see donejs?
kiwi1342
@kiwi1342
Sep 07 2015 23:21
Yes. That's another thing that I find difficult to understand. First of all its in es6 and to be honest I'm not a big fan of that. And also for small projects I don't find necessary using steal for importing few js's
I remember reading this post posted by someone at bitovi. https://medium.com/@boopathi/it-s-the-future-7a4207e028c2
Mohamed Cherif Bouchelaghem
@cherifGsoul
Sep 07 2015 23:23
Ok I understand, just FYI steal is not just a simple dependency management tool it can enhance the workflow