mbest on master
Convert function declaration in… Merge pull request #2133 from C… (compare)
mbest on master
Remove not needed command from … Merge pull request #2556 from k… (compare)
<!-- ko if: myAccount -->
changed to{{#if myAccount}}
Uncaught Error: ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node
at a.uc (vendor.js:21782)
at Object.a.applyBindings (vendor.js:21847)
at portfolio.js:35
@theDPlayer for your template you could achieve it like this.
<div data-bind="with: citem">
<div data-bind="class: currency">
<span data-bind="text: upward"></span>
<span data-bind="text: size"></span>
<!-- ko text: currency --><!-- /ko -->
</div>
</div>
then in your model if you had the following:
self.citem = ko.mapping.fromJS({
currency: 'AUD',
upward: 'Upward',
size: 200
});
"dependencies": { ... "knockout": "^3.5.1",
?