im implementing the widget example for knockout http://knockoutjs.com/documentation/component-overview.html
loading template from external html with requirejs not working for me
ko.components.register('like-or-dislike', {
template: { require: 'text!files/component-like-widget.html' }
});
i put the html containing the template in external html. replace "files/" with my relative path "/views/_leyout" and it's not working i need a text.js file that loads the html? any example ?