From cb1b87b26d78bc9bfc736444e8bf6fc235929815 Mon Sep 17 00:00:00 2001 From: Pavan Kumar Jadda <17564080+pavankjadda@users.noreply.github.com> Date: Tue, 23 May 2023 23:06:37 -0400 Subject: [PATCH] fix(demo): fixes imports in demo site --- apps/ngxsmart-demo/src/app/app.config.ts | 8 ++++---- apps/ngxsmart-demo/src/main.ts | 8 +------- package.json | 1 - 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/apps/ngxsmart-demo/src/app/app.config.ts b/apps/ngxsmart-demo/src/app/app.config.ts index 9cf8fe6..a3500b1 100644 --- a/apps/ngxsmart-demo/src/app/app.config.ts +++ b/apps/ngxsmart-demo/src/app/app.config.ts @@ -1,9 +1,7 @@ -import { ApplicationConfig } from '@angular/core'; -import { enableProdMode, importProvidersFrom } from '@angular/core'; -import { bootstrapApplication, BrowserModule, Title } from '@angular/platform-browser'; +import { ApplicationConfig, importProvidersFrom } from '@angular/core'; +import { BrowserModule, Title } from '@angular/platform-browser'; import { CommonModule, DatePipe } from '@angular/common'; import { PreloadAllModules, RouterModule } from '@angular/router'; -import { routes } from './app/app.routes'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { HttpClientModule, HttpClientXsrfModule } from '@angular/common/http'; @@ -12,6 +10,8 @@ import { MatAutocompleteModule } from '@angular/material/autocomplete'; import { MatNativeDateModule } from '@angular/material/core'; import { MatDatepickerModule } from '@angular/material/datepicker'; import { MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog'; +import { routes } from './app.routes'; + export const appConfig: ApplicationConfig = { providers: [ importProvidersFrom( diff --git a/apps/ngxsmart-demo/src/main.ts b/apps/ngxsmart-demo/src/main.ts index 773068c..238782c 100644 --- a/apps/ngxsmart-demo/src/main.ts +++ b/apps/ngxsmart-demo/src/main.ts @@ -1,11 +1,5 @@ import { appConfig } from './app/app.config'; - import { AppComponent } from './app/app.component'; - -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} +import { bootstrapApplication } from '@angular/platform-browser'; bootstrapApplication(AppComponent, appConfig).catch((err) => console.error('Unable to Boostrap the application. Error:' + err)); diff --git a/package.json b/package.json index c370bee..82873b4 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "license": "MIT", "scripts": { "ng": "nx", - "postinstall": "node ./decorate-angular-cli.js", "start": "nx serve --watch --hmr --port=4300", "build": "nx build", "test": "nx test"