Skip to content

Commit a1a54b6

Browse files
committed
feat: use standalone components
1 parent a012573 commit a1a54b6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

frontend/src/angular/src/app/app-routing.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
limitations under the License.
1212
*/
1313
import { Routes } from "@angular/router";
14-
import { SearchComponent } from "./search/search.component";
1514

1615
export const routes: Routes = [
17-
{ path: "search", component: SearchComponent },
16+
{ path: "search", loadComponent: () => import("./search/search.component").then(m => m.SearchComponent) },
1817
{ path: "movie/:id", loadComponent: () => import("./movies/movies.component").then(m => m.MoviesComponent) },
1918
{ path: "actor/:id", loadComponent: () => import("./actors/actors.component").then(m => m.ActorsComponent) },
2019
{ path: "movie-import", loadComponent: () => import("./movie-import/movie-import.component").then(m => m.MovieImportComponent) },

frontend/src/angular/src/app/app.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
1414
import { provideRouter } from '@angular/router';
1515

16-
import { routes } from './app-routing.module';
16+
import { routes } from './app-routing';
1717
import { provideAnimations } from '@angular/platform-browser/animations';
1818
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
1919
import { NgxServiceModule } from 'ngx-simple-charts/base-service';

0 commit comments

Comments
 (0)