Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(function (code) {
var el = config.compRef.location.nativeElement;
var script = angular2_universal_1.parseFragment(code);
var prebootEl = DOM.createElement('div');
DOM.setInnerHTML(prebootEl, code);
DOM.insertAfter(el, prebootEl);
var logger = config.appRef.injector.get(logger_1.Logger);
logger.debug('preboot source code rendered');
return config;
});
})
.then(code => {
let el = config.compRef.location.nativeElement;
let script = parseFragment(code);
let prebootEl = DOM.createElement('div');
DOM.setInnerHTML(prebootEl, code);
DOM.insertAfter(el, prebootEl);
let logger = config.appRef.injector.get(Logger);
logger.debug('preboot source code rendered');
return config;
});
})