mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-12 05:43:03 -05:00
30 lines
777 B
TypeScript
30 lines
777 B
TypeScript
import { provideHttpClient } from '@angular/common/http';
|
|
import { ApplicationConfig } from '@angular/core';
|
|
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
import { provideRouter, withComponentInputBinding } from '@angular/router';
|
|
|
|
export const appConfig: ApplicationConfig = {
|
|
providers: [
|
|
provideHttpClient(),
|
|
provideAnimations(),
|
|
provideRouter(
|
|
[
|
|
{
|
|
path: '',
|
|
pathMatch: 'full',
|
|
loadComponent: () => import('./list/photos.component'),
|
|
},
|
|
{
|
|
path: 'detail',
|
|
loadComponent: () => import('./detail/detail.component'),
|
|
},
|
|
{
|
|
path: '**',
|
|
redirectTo: '',
|
|
},
|
|
],
|
|
withComponentInputBinding(),
|
|
),
|
|
],
|
|
};
|