anchor.diff:                queryParameters: url.queryParameters, fragment: url.fragment));
       }
     }
  -
  -  void _onKeyPress(KeyboardEvent event) {
  -    if (event.keyCode == KeyCode.ENTER) {
  -      onTrigger(event);
  -    }
  -  }
   }
  
positive.code: // BSD-style license that can be found in the LICENSE file.
  
  import 'dart:async';
  import 'dart:html' show AnchorElement, Element, Event, KeyboardEvent, KeyCode;
  
  import 'package:angular/angular.dart';
  
  
negative.code:   }
  
    @HostListener('click', const [r'$event'])
    void onClick(MouseEvent event) {
      // Control-click (or Command-click) opens link in new tab.
      if (event.ctrlKey || event.metaKey) return;
      _trigger(event);
    }
  
    void _onKeyPress(KeyboardEvent event) {
      // Control-click (or Command-click) opens link in new tab.
      if (event.keyCode != KeyCode.ENTER || event.ctrlKey || event.metaKey) {
        return;
      }
      _trigger(event);
    }
  
    void _trigger(Event event) {
      // The presence of target="_blank" opens link in new tab.
      if (_target == null || _target == '_self') {
        event.preventDefault();
        _router.navigate(
  