How to use the @dpc-sdp/ripple-global/utils/helpers.js.isAnchorLink function in @dpc-sdp/ripple-global

To help you get started, we’ve selected a few @dpc-sdp/ripple-global examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dpc-sdp / ripple / packages / components / Atoms / Link / Link.vue View on Github external
created: function () {
    if (!isAnchorLink(this.href) && isRelativeUrl(this.href)) {
      this.isNuxtLink = this.rplOptions.nuxt
    }
    // Set link target for non nuxt-links
    if (this.target.length === 0) {
      if (isExternalUrl(this.href, this.rplOptions.hostname)) {
        this.linkTarget = '_blank'
      }
    } else {
      this.linkTarget = this.target
    }
  }
}