Hey y'all. Former user of CanJS v1. About to start a new project, and considering what framework to use. Quick question: I see that 3.x no longer supports can.view() to load a template from a URL. I assume there's a good reason for that. Is there a blog post or something that explains the rationale and the alternative(s)? Thanks!
(There will probably be more questions from me in the next or so, as I look into all the changes.) :-)
Ah, ES6. I've been away from coding for a few years (doing UI design instead). I've already started looking at ES6. Was planning to skip stealjs because I wanted to limit myself to CanJS, but maybe I should reconsider. Thanks!
I'll keep that in mind. I expect I should get comfy with ES6 anyway :-)
Actually, as long as you're here, another question: event handlers used to be on the Controller instance. In a 3.x Component, should they be on the viewModel (DefineMap) or on the component's "events" object? Does it matter? Is there a best practice? Thanks!
Some things will still feel familiar (can-construct still works the same way, models will still have save(), stache works mostly like mustache), but making components with the modlet pattern is way friendlier now IMO.
Also we have autorender now, which lets you do the entire page as a stache template.
Well, JMVC and CanJS 1.x worked well for me in the past, and I would consider using the old version because I have code that I could easily re-use immediately. Now I need to learn new stuff, like how the old concepts map to the new (I've already looked at the migration page; I bookmarked it :-)
Anyway, no big deal, just a consideration. Thanks again! I'm sure y'all will be hearing more from me! :-)