I want to get data of activated route by segment to check if it's company_id !== null
:
/company_type/company_name/company_id/some_page
I tried const prefix = this.activatedRoute.url;
. But it's giving long data. I want to get segment data of company_id
.
Thank you if you provide any answer guys :)