Skip to content

Commit

Permalink
fix(demo): fixes imports in demo site
Browse files Browse the repository at this point in the history
  • Loading branch information
pavankjadda committed May 24, 2023
1 parent e45ce6f commit cb1b87b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
8 changes: 4 additions & 4 deletions apps/ngxsmart-demo/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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(
Expand Down
8 changes: 1 addition & 7 deletions apps/ngxsmart-demo/src/main.ts
Original file line number Diff line number Diff line change
@@ -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));
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cb1b87b

Please sign in to comment.