import { Params } from '@angular/router'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class HelperActivatedRouteService { /** * Return object what contains the `id` from the current URL as Observable * * Returned object in the `Observable` will looks like this (if the ID in the URL is `42`): * * ```json * { * id: 42 * } * ``` */ params(): Observable; /** * Return the id from the URL if the URL looks like this: * * @example (.*?)/edit/:id * @example (.*?)/list/:id * * @returns id number */ getId(): number; /** * Sándor Dániel> Azért hoztam létre külön egy functiont, mert * 1. a getId() editelést is figyelembe veszi, így edit után is a list/editID-re ugrik * * 2. Ha kivszem, hogy figyelje az editet, akkor nem fogja figyelni a params() lévő idt, és nem tölti be az adatokat. * * 3. Mivel tudnia kell, hogy melyik list/:id térjen vissza, így paraméterben kell szerepelni az id-nek (app routeban * módosítottam) és ha a getId()-ben egészítem ki a vizsgálatot a sajátommal, akkor minden esetben, ha a paraméterben * szerepel id, akkor az edit töltődik be. (a params() függvény több helyen használva van, nem akartam birizgálni, ezért * hoztam létre egy egyedit erre az esetre) * */ getUniqueListId(): number; /** * Bablena Ferend> A getUniquListId() kicsit módosított változata * a webshop/product/details/:id-nél derült ki, hogy ott külön kell megadni, mi az url vége * * @param lastWord az id előtt szereplő utolsó egyedi tagot kell megadni */ getUniqueId(lastWord: string): number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } //# sourceMappingURL=helper-activated-route.service.d.ts.map