jquery - Javascript is not rendering in my SPA -
i have following written in home.js file: define(['services/logger'], function (logger) { var vm = { activate: activate, title: 'home view' }; return vm; //#region internal methods function activate() { logger.log('home view activated', null, 'home', true); return true; } //#endregion var editor, html = ''; function createeditor() { if (editor) return; // create new editor inside <div id="editor">, setting value html var config = {}; editor = ckeditor.appendto('editor', config, html); } function removeeditor() { if (!editor) return; // retrieve editor contents. in ajax application, data // sent server or used in other way. document.getelementbyid('editorcontents').innerhtml = html = editor.getdata(); document.getelementbyid('contents').style.display = ''; // destroy editor. editor.destroy(); edi