Skip to content

Commit

Permalink
fixing install error
Browse files Browse the repository at this point in the history
  • Loading branch information
bpatrik committed Jul 21, 2019
1 parent 1846f7e commit 6d44c22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 3 additions & 9 deletions frontend/main.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {ApplicationRef, enableProdMode} from '@angular/core';
import {enableProdMode} from '@angular/core';
import {environment} from './environments/environment';
import {AppModule} from './app/app.module';
import {enableDebugTools} from '@angular/platform-browser';

if (environment.production) {
enableProdMode();
}
}

platformBrowserDynamic().bootstrapModule(AppModule).then(moduleRef => {
const applicationRef = moduleRef.injector.get(ApplicationRef);
const componentRef = applicationRef.components[0];
// allows to run `ng.profiler.timeChangeDetection();`
enableDebugTools(componentRef);
}).catch(err => console.error(err));
platformBrowserDynamic().bootstrapModule(AppModule).catch(err => console.error(err));
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"main": "./backend/index.js",
"bin": "./backend/index.js",
"scripts": {
"installx": "tsc && gulp build-prod",
"install": "tsc && gulp build-prod",
"build-release": "gulp build-release",
"build-backend": "tsc",
"pretest": "tsc",
Expand Down

0 comments on commit 6d44c22

Please sign in to comment.