Update of found mode:
<a class="icon-plus-details" [routerLink]="['/', linkDetail]" [queryParams]="{id: ownerId}"></a>
That one
[queryParams]="{id: ownerId}"
Inserts into the url returned a parameter get: url_example? id=12 for example.
After that, the shape of the router capture a value get present in a url current.
Within the component that is the result of selected route, is done as follows:
Accomplishes all Imports necessary and etc of Routerparam, and then can be returned in a variable via the syntax below present in const id
import { ActivatedRoute, Router } from '@angular/router';
getParam() {
const id = this.routerParam.snapshot.queryParams['id'];
}
Take a look at the documentation for query params https://angular.io/guide/router#query-Parameters-and-Fragments
– Eduardo Vargas
or if the parameter is mandatory https://angular.io/guide/router#route-Definition-with-a-Parameter
– Eduardo Vargas
@Eduardovargas I managed to do, I put the answer down there, I still didn’t know the right syntax, but you can do what I wanted with queryParams and then use a specific command to get this get in the url, thanks for the help
– Philip Developer