Skip to content

Commit 77b10d3

Browse files
committed
feat: migrate to standalone components
1 parent 99f2df2 commit 77b10d3

14 files changed

+67
-144
lines changed

src/app/app-routing.module.ts

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/app/app.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import { Component } from '@angular/core';
22
import { ElectronService } from './core/services';
33
import { TranslateService } from '@ngx-translate/core';
44
import { APP_CONFIG } from '../environments/environment';
5+
import { RouterOutlet } from '@angular/router';
56

67
@Component({
78
selector: 'app-root',
89
templateUrl: './app.component.html',
910
styleUrls: ['./app.component.scss'],
10-
standalone: false
11+
standalone: true,
12+
imports: [RouterOutlet]
1113
})
1214
export class AppComponent {
1315
constructor(

src/app/app.module.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/app/detail/detail-routing.module.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/app/detail/detail.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import { Component, OnInit } from '@angular/core';
2+
import { RouterLink } from '@angular/router';
3+
import { TranslateModule } from '@ngx-translate/core';
24

35
@Component({
46
selector: 'app-detail',
57
templateUrl: './detail.component.html',
68
styleUrls: ['./detail.component.scss'],
7-
standalone: false
9+
standalone: true,
10+
imports: [RouterLink, TranslateModule]
811
})
912
export class DetailComponent implements OnInit {
1013

src/app/detail/detail.module.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/app/home/home-routing.module.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/app/home/home.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { Component, OnInit } from '@angular/core';
2-
import { Router } from '@angular/router';
2+
import { Router, RouterLink } from '@angular/router';
3+
import { TranslateModule } from '@ngx-translate/core';
34

45
@Component({
56
selector: 'app-home',
67
templateUrl: './home.component.html',
78
styleUrls: ['./home.component.scss'],
8-
standalone: false
9+
standalone: true,
10+
imports: [RouterLink, TranslateModule]
911
})
1012
export class HomeComponent implements OnInit {
1113

src/app/home/home.module.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/app/shared/components/page-not-found/page-not-found.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Component, OnInit } from '@angular/core';
44
selector: 'app-page-not-found',
55
templateUrl: './page-not-found.component.html',
66
styleUrls: ['./page-not-found.component.scss'],
7-
standalone: false
7+
standalone: true
88
})
99
export class PageNotFoundComponent implements OnInit {
1010
constructor() {}

0 commit comments

Comments
 (0)