docs: add JSDoc comments to LegaInformationsComponents
This commit is contained in:
parent
e49f6bd9ff
commit
7a7beda85d
3 changed files with 33 additions and 0 deletions
|
|
@ -14,6 +14,9 @@ import { BtnBackComponent } from '../../buttons/btn-back/btn-back.component';
|
||||||
export class HelpComponent {
|
export class HelpComponent {
|
||||||
constructor(private location: Location) {}
|
constructor(private location: Location) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Navigates back in the browser's history.
|
||||||
|
*/
|
||||||
backClicked() {
|
backClicked() {
|
||||||
this.location.back();
|
this.location.back();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,14 +16,29 @@ export class ImprintComponent {
|
||||||
|
|
||||||
constructor(private location: Location, private router: Router) {}
|
constructor(private location: Location, private router: Router) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OnInit lifecycle hook.
|
||||||
|
*
|
||||||
|
* Checks if the current route is '/login/privacy-policy' and sets
|
||||||
|
* `isRouteLogin` accordingly.
|
||||||
|
*/
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.checkCurrentRoute();
|
this.checkCurrentRoute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Navigates back in the browser's history.
|
||||||
|
*/
|
||||||
backClicked() {
|
backClicked() {
|
||||||
this.location.back();
|
this.location.back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks the current route and updates the `isRouteLogin` flag.
|
||||||
|
*
|
||||||
|
* This method retrieves the current URL from the router. If the URL
|
||||||
|
* matches '/login/imprint', it sets the `isRouteLogin` property to true.
|
||||||
|
*/
|
||||||
checkCurrentRoute(): void {
|
checkCurrentRoute(): void {
|
||||||
const currentUrl = this.router.url;
|
const currentUrl = this.router.url;
|
||||||
if (currentUrl === '/login/imprint') {
|
if (currentUrl === '/login/imprint') {
|
||||||
|
|
|
||||||
|
|
@ -16,14 +16,29 @@ export class PrivacyPolicyComponent implements OnInit {
|
||||||
|
|
||||||
constructor(private location: Location, private router: Router) {}
|
constructor(private location: Location, private router: Router) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OnInit lifecycle hook.
|
||||||
|
*
|
||||||
|
* Checks if the current route is '/login/privacy-policy' and sets
|
||||||
|
* `isRouteLogin` accordingly.
|
||||||
|
*/
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.checkCurrentRoute();
|
this.checkCurrentRoute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Navigates back in the browser's history.
|
||||||
|
*/
|
||||||
backClicked() {
|
backClicked() {
|
||||||
this.location.back();
|
this.location.back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks the current route and updates the `isRouteLogin` flag.
|
||||||
|
*
|
||||||
|
* This method retrieves the current URL from the router. If the URL
|
||||||
|
* matches '/login/privacy-policy', it sets the `isRouteLogin` property to true.
|
||||||
|
*/
|
||||||
checkCurrentRoute(): void {
|
checkCurrentRoute(): void {
|
||||||
const currentUrl = this.router.url;
|
const currentUrl = this.router.url;
|
||||||
if (currentUrl === '/login/privacy-policy') {
|
if (currentUrl === '/login/privacy-policy') {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue