From b1e806a5a65b2012b0c534f379b92858361bc36a Mon Sep 17 00:00:00 2001 From: NullVoxPopuli Date: Sun, 25 Oct 2020 09:58:45 -0400 Subject: [PATCH] start work on writing #15 --- ...5-how-to-make-your-own-linkto-component.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 content/2020-10-25-how-to-make-your-own-linkto-component.md diff --git a/content/2020-10-25-how-to-make-your-own-linkto-component.md b/content/2020-10-25-how-to-make-your-own-linkto-component.md new file mode 100644 index 0000000..f05fa21 --- /dev/null +++ b/content/2020-10-25-how-to-make-your-own-linkto-component.md @@ -0,0 +1,23 @@ +--- +title: How to Make Your Own LinkTo Component +image: +imageMeta: + attribution: + attributionLink: +featured: true +authors: + - nullvoxpopuli +date: Sun Oct 25 2020 09:55:36 GMT-0400 (Eastern Daylight Time) +tags: + - new +--- + +# How to make your own LinkTo component + +Good luck on your new post! + +Finished Code & Demo: https://codesandbox.io/s/custom-link-component-dgbxl?file=/app/components/link.hbs + +Upcoming changes to `` from [RFC 391](https://github.com/emberjs/rfcs/blob/master/text/0391-router-helpers.md) +> In the past, only HTMLAnchorElements that were produced by {{link-to}}s would produce a transition when a user clicked on them. This RFC changes to the global EventDispatcher to allow for any HTMLAnchorElement with a valid root relative href to cause a transition. This will allow for us to not only allows us to support use cases like the ones described in the motivation, it makes teaching easier since people who know HTML don't need know an Ember specific API to participate in routing transitions. +