Sha256: 6c9cbb8316b0025dcbea9b63cf172828d214eee90a0c52a37e668147bc4d5827
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 KB
Contents
import 'zone.js/dist/zone' import { enableProdMode, NgZone } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { Router, NavigationStart } from '@angular/router'; import { singleSpaAngular, getSingleSpaExtraProviders } from 'single-spa-angular'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; import { singleSpaPropsSubject } from './single-spa/single-spa-props'; if (environment.production) { enableProdMode(); } const lifecycles = singleSpaAngular({ bootstrapFunction: singleSpaProps => { singleSpaPropsSubject.next(singleSpaProps); return platformBrowserDynamic(getSingleSpaExtraProviders()).bootstrapModule(AppModule); }, template: '<openc3-tool-<%= tool_name %>-root />', Router, NavigationStart, NgZone, domElementGetter: function() { let elem = document.getElementById("openc3-tool") if (elem) { return elem } else { return document.createElement('div') } }, }); export const bootstrap = lifecycles.bootstrap; export const mount = lifecycles.mount; export const unmount = lifecycles.unmount;
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
openc3-6.0.2 | templates/tool_angular/src/main.single-spa.ts |
openc3-6.0.1 | templates/tool_angular/src/main.single-spa.ts |
openc3-6.0.0 | templates/tool_angular/src/main.single-spa.ts |