Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(config => {
let preboot = _.extend({ debug: options.debug }, options.preboot);
let prebootCode = createPrebootCode(component, preboot);
return prebootCode
.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;
});
})
.then(config => {
.then(function (config) {
var preboot = _.extend({ debug: options.debug }, options.preboot);
var prebootCode = angular2_universal_1.createPrebootCode(component, preboot);
return prebootCode
.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(function (config) {