Skip to content

Commit 6d4d48b

Browse files
author
Warren Buckley
authored
Merge pull request #41 from umbraco-community/fixes-docs
Incorrect Docs for Our-Link
2 parents 6d9948d + 95f9e8b commit 6d4d48b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,15 +326,15 @@ Note if the link set is an external link and you set the target of the link to b
326326

327327
### Simple Example
328328
```cshtml
329-
<our-link="@Model.ctaLink">
329+
<our-link link="@Model.ctaLink">
330330
<h2>Hi There</h2>
331331
</our-link>
332332
```
333333

334334
Alternatively if you use the `<our-link>` without child DOM elements then it will use the `Title` property of the link in the Multi Url Picker property editor to create the anchor tag.
335335

336336
```cshtml
337-
<our-link="@Model.ctaLink"></our-link>
337+
<our-link link="@Model.ctaLink"></our-link>
338338
```
339339

340340
With this tag helper the child DOM elements inside the `<our-link>` is wrapped with the `<a>` tag

0 commit comments

Comments
 (0)