a zip code crypto-currency system good for red ONLY

nav-push-anchor.js 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { Directive, Host, Optional } from '@angular/core';
  2. import { DeepLinker } from '../../navigation/deep-linker';
  3. import { NavPush } from './nav-push';
  4. /**
  5. * @hidden
  6. */
  7. var NavPushAnchor = (function () {
  8. function NavPushAnchor(host, linker) {
  9. this.host = host;
  10. this.linker = linker;
  11. }
  12. NavPushAnchor.prototype.updateHref = function () {
  13. if (this.host && this.linker) {
  14. this._href = this.linker.createUrl(this.host._nav, this.host.navPush, this.host.navParams) || '#';
  15. }
  16. else {
  17. this._href = '#';
  18. }
  19. };
  20. NavPushAnchor.prototype.ngAfterContentInit = function () {
  21. this.updateHref();
  22. };
  23. NavPushAnchor.decorators = [
  24. { type: Directive, args: [{
  25. selector: 'a[navPush]',
  26. host: {
  27. '[attr.href]': '_href'
  28. }
  29. },] },
  30. ];
  31. /** @nocollapse */
  32. NavPushAnchor.ctorParameters = function () { return [
  33. { type: NavPush, decorators: [{ type: Host },] },
  34. { type: DeepLinker, decorators: [{ type: Optional },] },
  35. ]; };
  36. return NavPushAnchor;
  37. }());
  38. export { NavPushAnchor };
  39. //# sourceMappingURL=nav-push-anchor.js.map