3 ms·
Have you started using the new components available in knockout? http://knockoutjs.com/documentation/component-overview.html http://knockoutjs.com/documentatio
by hardwaresofton 11y ago
Have you started using the new components available in knockout?
http://knockoutjs.com/documentation/component-overview.html http://knockoutjs.com/documentation/component-overview.html
As a knockout enthusiast I was excited to see that get developed.
- steven777400 11y agoYes (and I like them too), but I don't put the template as text. Instead I use one JS and one HTML file per component, loaded with require.js.
- hardwaresofton 11y agoYeah I'd imagine most people don't use the template as text -- one of the best parts about knockout is it's natural (HTML) feeling templates. What do you use for routing? I've been dreaming up a framework that's actually knockout +/- routing +/- requirejs +/- model management...
- steven777400 11y agoI haven't done any client-side routing. Normally each page is either static HTML/JS or is served by ASP.NET MVC on the server side. Then APIs are used to load the models on the client side and perform interaction. In other words, we're not making any effort to move to "single page" applications.
- hardwaresofton 11y agoAh I get it -- knockout is even better for that kind of usecase