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",
?
eval
with CSP.