Move toju-app into own its folder
This commit is contained in:
21
toju-app/src/main.ts
Normal file
21
toju-app/src/main.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { bootstrapApplication } from '@angular/platform-browser';
|
||||
import { appConfig } from './app/app.config';
|
||||
import { App } from './app/app';
|
||||
import mermaid from 'mermaid';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
mermaid: typeof mermaid;
|
||||
}
|
||||
}
|
||||
|
||||
// Expose mermaid globally for ngx-remark's MermaidComponent
|
||||
window.mermaid = mermaid;
|
||||
mermaid.initialize({
|
||||
startOnLoad: false,
|
||||
securityLevel: 'loose',
|
||||
theme: 'dark'
|
||||
});
|
||||
|
||||
bootstrapApplication(App, appConfig)
|
||||
.catch((err) => console.error(err));
|
||||
Reference in New Issue
Block a user