I am using the latest version of Angular, I believe it is NG4.
I have a route as follows:
{ path: 'banner/:set', component: AffiliateBannerComponent },
Which translates into a url:
https://www.example.com/banner/set1
https://www.example.com/banner/set2
https://www.example.com/banner/set3
When linking to each banner set I simply have my nav setup as:
<li><a [routerLink]="['/affiliate/banner', 'set1']">Banner Set 1</a></li>
<li><a [routerLink]="['/affiliate/banner', 'set2']">Banner Set 2</a></li>
<li><a [routerLink]="['/affiliate/banner', 'set3']">Banner Set 3</a></li>
From the code I want to grab the "set1" variable from the route.
How do I do this?