Skip to content

Commit

Permalink
refactor(projects-routes): update indentation (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackofdiamond5 authored Jan 25, 2024
1 parent 112f27d commit 41e6bdd
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { routes } from './app.routes';

export const appConfig: ApplicationConfig = {
providers: [
provideRouter(routes, withComponentInputBinding()),
importProvidersFrom(BrowserModule, HammerModule),
provideAnimations(),
// provide the HAMMER_GESTURE_CONFIG token
// to override the default settings of the HammerModule
provideRouter(routes, withComponentInputBinding()),
importProvidersFrom(BrowserModule, HammerModule),
provideAnimations()
// provide the HAMMER_GESTURE_CONFIG token
// to override the default settings of the HammerModule
// { provide: HAMMER_GESTURE_CONFIG, useClass: MyHammerConfig }
]
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import { PageNotFoundComponent } from './error-routing/not-found/not-found.compo
import { UncaughtErrorComponent } from './error-routing/error/uncaught-error.component';

export const routes: Routes = [
{ path: 'error', component: UncaughtErrorComponent },
{ path: '**', component: PageNotFoundComponent } // must always be last
{ path: 'error', component: UncaughtErrorComponent },
{ path: '**', component: PageNotFoundComponent } // must always be last
];
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
standalone: true,
template: '<h2>Error 500: Internal Server Error</h2>',
})
export class UncaughtErrorComponent { }
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { Routes } from '@angular/router';
import { HomeComponent } from './home/home.component';

export const routes: Routes = [
{ path: '', redirectTo: '/home', pathMatch: 'full'},
{ path: 'home', component: HomeComponent, data: { text: 'Home' }}
{ path: '', redirectTo: '/home', pathMatch: 'full' },
{ path: 'home', component: HomeComponent, data: { text: 'Home' } }
];
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,32 @@ import { ApplicationConfig, importProvidersFrom } from '@angular/core';
import { provideRouter, withComponentInputBinding } from '@angular/router';
import { BrowserModule, HammerModule } from '@angular/platform-browser';
import { provideAnimations } from '@angular/platform-browser/animations';
import { IgxNavigationDrawerModule, IgxNavbarModule, IgxLayoutModule, IgxRippleModule } from 'igniteui-angular';
import {
IgxNavigationDrawerModule,
IgxNavbarModule,
IgxLayoutModule,
IgxRippleModule,
} from 'igniteui-angular';

import { AuthenticationModule, ExternalAuthService } from './authentication';
import { routes } from './app.routes';

export const appConfig: ApplicationConfig = {
providers: [
provideRouter(routes, withComponentInputBinding()),
importProvidersFrom(
BrowserModule,
HammerModule,
IgxLayoutModule,
IgxNavbarModule,
IgxNavigationDrawerModule,
IgxRippleModule,
AuthenticationModule),
provideAnimations(),
ExternalAuthService
// provide the HAMMER_GESTURE_CONFIG token
// to override the default settings of the HammerModule
provideRouter(routes, withComponentInputBinding()),
importProvidersFrom(
BrowserModule,
HammerModule,
IgxLayoutModule,
IgxNavbarModule,
IgxNavigationDrawerModule,
IgxRippleModule,
AuthenticationModule
),
provideAnimations(),
ExternalAuthService
// provide the HAMMER_GESTURE_CONFIG token
// to override the default settings of the HammerModule
// { provide: HAMMER_GESTURE_CONFIG, useClass: MyHammerConfig }
]
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,29 @@ import { ApplicationConfig, importProvidersFrom } from '@angular/core';
import { provideRouter, withComponentInputBinding } from '@angular/router';
import { BrowserModule, HammerModule } from '@angular/platform-browser';
import { provideAnimations } from '@angular/platform-browser/animations';
import { IgxNavigationDrawerModule, IgxNavbarModule, IgxLayoutModule, IgxRippleModule } from 'igniteui-angular';
import {
IgxNavigationDrawerModule,
IgxNavbarModule,
IgxLayoutModule,
IgxRippleModule,
} from 'igniteui-angular';

import { routes } from './app.routes';

export const appConfig: ApplicationConfig = {
providers: [
provideRouter(routes, withComponentInputBinding()),
importProvidersFrom(
BrowserModule,
HammerModule,
IgxLayoutModule,
IgxNavbarModule,
IgxNavigationDrawerModule,
IgxRippleModule),
provideAnimations(),
// provide the HAMMER_GESTURE_CONFIG token
// to override the default settings of the HammerModule
provideRouter(routes, withComponentInputBinding()),
importProvidersFrom(
BrowserModule,
HammerModule,
IgxLayoutModule,
IgxNavbarModule,
IgxNavigationDrawerModule,
IgxRippleModule
),
provideAnimations()
// provide the HAMMER_GESTURE_CONFIG token
// to override the default settings of the HammerModule
// { provide: HAMMER_GESTURE_CONFIG, useClass: MyHammerConfig }
]
};

0 comments on commit 41e6bdd

Please sign in to comment.