I have been trying to apply knockout secure bindings to remove unsafe-eval issues in app. Half of my durandal components have failed to load while doing. Can anyone suggest what is going wrong?
I have applied below code to my knockoutBindings.ts file, it failed to load more than half of the components in Durandal although unsafe-eval issues were not shown in console. The same file has many custom bindings created too which I don't know if causing a conflict with knockout secure binding or if my way of applying knockout-secure-binding is correct
import ksb = require("knockout-secure-binding")
var options = {
attribute: "data-bind",
globals : {},
bindings: ko.bindingHandlers, // still use default binding handlers
noVirtualElements: true // no virtual elements
};
ko.bindingProvider.instance = new ksb(options);