Skip to content

Commit

Permalink
missing implements OnInit / Unexpected empty constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuj committed Jan 28, 2025
1 parent a1c724d commit a17563a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/Components/home/home.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component } from '@angular/core';
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { HeaderMenus } from '../../Models/header-menus.dto';
import { PostDTO } from '../../Models/post.dto';
Expand All @@ -14,7 +14,7 @@ import { SharedService } from '../../Services/shared.service';
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent {
export class HomeComponent implements OnInit {
posts!: PostDTO[] | undefined;
showButtons: boolean;

Expand Down
2 changes: 0 additions & 2 deletions frontend/src/app/Services/local-storage.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { Injectable } from '@angular/core';
providedIn: 'root'
})
export class LocalStorageService {
constructor() {}

set(key: string, value: string) {
localStorage.setItem(key, value);
}
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/app/Services/shared.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ export interface ResponseError {
providedIn: 'root'
})
export class SharedService {
constructor() {}

async managementToast(
element: string,
validRequest: boolean,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { Component } from '@angular/core';

@Component({
selector: 'app-root',
// eslint-disable-next-line @angular-eslint/prefer-standalone
standalone: false,
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'frontend';
selectedLanguage = 'en';
constructor() {}
}

0 comments on commit a17563a

Please sign in to comment.