I considered Angular.js and Knockout.js as potential solutions for end users. I love knockout tutorials and documentation. However, I donβt understand how Knockout handles large application templates.
For example, in Angular, you should make the main template as follows:
<div id="content" class="container" ng-view></div>
And then it will be filled with "partial", for example:
<p>This is a partial</p>
My question is, does knockout support the same concept? It seems like Knockout wants to use the foreach pattern ( http://knockoutjs.com/documentation/template-binding.html ). However, this does not apply to breaking HTML into smaller segments.
Am I on the right track here? Is there something I am missing regarding the Knockout directory structure?
EDIT: I got a good feedback. I understand that Knockout does not have a built-in template solution. If true, I will probably need Angular.
source share