How can I bind Google translate in Durundal Shell.js , shell.html?
html
script<
Durandal doesn't render script tags within views. To render them, you should use knockout custom bindings:
ko.bindingHandlers.googleTranslate = {
update: function( element, valueAccessor, allBindingsAccessor, viewModel, bindingContext){
var googleElement = valueAccessor();
$(element).html(' ');
}
};
Use it in your shell.html: