moved login component; improved documentation; other minor improvements
This commit is contained in:
10
src/main.ts
10
src/main.ts
@@ -5,16 +5,10 @@ import { createApplication } from '@angular/platform-browser';
|
||||
import { createCustomElement } from '@angular/elements';
|
||||
import { environment } from './environments/environment';
|
||||
|
||||
createApplication(appConfig).then((app) => {
|
||||
const el = createCustomElement(App, { injector: app.injector });
|
||||
customElements.define('frontend-plugin-demo', el);
|
||||
return app;
|
||||
})
|
||||
// bootstrapPhoenixPluginCustomElement(App, 'frontend-plugin-demo', appConfig)
|
||||
bootstrapPhoenixPluginCustomElement(App, 'frontend-plugin-demo', appConfig)
|
||||
.then((app) => {
|
||||
//if development:
|
||||
if(!environment.production)
|
||||
return app.bootstrap(App);
|
||||
return app!.bootstrap(App);
|
||||
else
|
||||
return app;
|
||||
});
|
||||
Reference in New Issue
Block a user