5 ms·
Reusable UI Widgets Using RequireJS and Knockout
- biton13 12y agoCan these workflows be applied with other frameworks (other than knockout)?
- fxenik 12y agoIt can certainly be applied, as long as you can pass an html string to your template engine. For example, with Ember.js you could use Ember.Handlebars.compile to create the view based on the html you get with requirejs.
- biton13 12y agoand I suppose it is the same for Angular? I prefer it as oposed to Knockout
- fxenik 12y agoYes, I believe you can, though I'm not very experienced with Angular. Check this post: https://coderwall.com/p/mgtrkg/variable-templates-for-an-angularjs-directive https://coderwall.com/p/mgtrkg/variable-templates-for-an-ang... Why would you prefer Angular over Knockout?
- deleted 12y ago[deleted]