I just researched Knockout JS, I want to make directive like angular JS instructions. But I can not call the html page in the register component.
If someone knows about this, please help me very much thanks in advance.
My html page myComponent.html
gt; & Lt; H4 & gt; Hello word & lt; / H4 & gt; & Lt; / Div & gt; My JS file is myComponent.js
ko.components.register ('my-component', {temple: / I want my html Call on page /, seeModel: function () {}}); Ko.applyBindings ();
It seems that you enter misspellings in the template in your sample. Not sure whether it is related or not.
No comments:
Post a Comment