Advertisement
Guest User

main.ts

a guest
Feb 6th, 2024
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
  2.  
  3. import { AppModule } from './app/app.module';
  4. import { HIGHLIGHT_OPTIONS } from 'ngx-highlightjs';
  5. import { bootstrapApplication } from '@angular/platform-browser';
  6. import { AppComponent } from './app/app.component';
  7. import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
  8.  
  9. bootstrapApplication(AppComponent, {
  10. providers: [
  11. {
  12. provide: HIGHLIGHT_OPTIONS,
  13. useValue: {
  14. fullLibraryLoader: () => import('highlight.js'),
  15. themePath: 'assets/styles/solarized-dark.css'
  16. }
  17. }, provideAnimationsAsync()
  18. ]
  19. })
  20.  
  21. platformBrowserDynamic().bootstrapModule(AppModule)
  22. .catch(err => console.error(err));
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement