# a
# Overview
Hyperlink (no underline by default)
# Child Components
Only <span>
is supported.
# Attributes
Supports universal attributes
Name | Type | Default Value | Required | Description |
---|---|---|---|---|
href | string | - | No | For supported formats, see the uri parameter in page routing. Additional: href can also add parameters in the format of "?param1=value1", and the parameters can be used in the page via this.param1 . When using the this.param1 variable, you need to define a property with the same key name under public (passing parameters outside the app) or protected (passing parameters inside the app) in the target page.Example: <a href="/about?param1=value1">About</a> |
# Styles
Supports text styles
Supports universal styles
# Events
Supports universal events
# Example Code
<template>
<div>
<a class="link" href="/home">goHome</a>
<a href="/home">
<span class="link">Using span child component</span>
</a>
</div>
</template>