SepDev SepDev - 1 year ago 107
AngularJS Question

AngularJS 2 Dart get RouterLink Parameter

I want to create a details page in Angular and want to pass an entry id with the RouterLink. Is there a way to get the parameter in the url?

The URL looks like:


Answer Source

Implement OnActivate

  routerOnActivate(ComponentInstruction nextInstruction,
      ComponentInstruction prevInstruction) {
    String routeParamValue = nextInstruction.params['paramName'];
    String queryParamValue = nextInstruction.urlParams['paramName'];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download