message: fix(router): state data missing in routerLink
  fixes - router state data is missing on routerLink when used
  with non-anchor elements.
  PR Close
diff: */
  import {LocationStrategy} from '@angular/common';
  -import {Attribute, Directive, ElementRef, HostBinding, HostListener, Input, OnChanges, OnDestroy, Renderer2, isDevMode} from '@angular/core';
  +import {Attribute, Directive, ElementRef, HostBinding, HostListener, Input, isDevMode, OnChanges, OnDestroy, Renderer2} from '@angular/core';
  import {Subscription} from 'rxjs';
  import {QueryParamsHandling} from '../config';
  @@ -163,6 +163,7 @@ export class RouterLink {
  const extras = {
  skipLocationChange: attrBoolValue(this.skipLocationChange),
  replaceUrl: attrBoolValue(this.replaceUrl),
  + state: this.state,
  };
  this.router.navigateByUrl(this.urlTree, extras);
  return true;
  @@ -244,8 +245,12 @@ export class RouterLinkWithHref implements OnChanges, OnDestroy {
  this.preserve = value;
  }
  - ngOnChanges(changes: {}): any { this.updateTargetUrlAndHref(); }
  - ngOnDestroy(): any { this.subscription.unsubscribe(); }
  + ngOnChanges(changes: {}): any {
  + this.updateTargetUrlAndHref();
  + }
  + ngOnDestroy(): any {
  + this.subscription.unsubscribe();
  + }
  @HostListener('click', ['$event.button', '$event.ctrlKey', '$event.metaKey', '$event.shiftKey'])
  onClick(button: number, ctrlKey: boolean, metaKey: boolean, shiftKey: boolean): boolean {
  