source: trip-planner-front/node_modules/@schematics/angular/application/files/src/main.ts.template@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 642 bytes
Line 
1import { enableProdMode<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } from '@angular/core';
2import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3
4import { AppModule } from './app/app.module';
5import { environment } from './environments/environment';
6
7if (environment.production) {
8 enableProdMode();
9}
10<% if(!!viewEncapsulation) { %>
11platformBrowserDynamic().bootstrapModule(AppModule, {
12 defaultEncapsulation: ViewEncapsulation.<%= viewEncapsulation %>
13})
14 .catch(err => console.error(err));
15<% } else { %>
16platformBrowserDynamic().bootstrapModule(AppModule)
17 .catch(err => console.error(err));
18<% } %>
Note: See TracBrowser for help on using the repository browser.