8000 Modernize polaris-link component by tomnez · Pull Request #509 · smile-io/ember-polaris · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 2, 2024. It is now read-only.

Modernize polaris-link component #509

Merged
merged 1 commit into from
Feb 18, 2020

Conversation

tomnez
Copy link
Contributor
@tomnez tomnez commented Feb 17, 2020

DEV-69

Updates PolarisLink to tagless component, ES6 classes, and angle bracket syntax.

Notable change:

  • Added ember-event-helpers to use with the on modifier so we can stop propagation via template helper.

@tomnez tomnez self-assigned this Feb 17, 2020
@tomnez tomnez requested review from andrewpye and vladucu February 17, 2020 22:09
Copy link
Member
@andrewpye andrewpye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tomnez! 👍

Copy link
Member
@vladucu vladucu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid!

class={{linkClass}}
{{action (action onClick) bubbles=false}}
class={{this.linkClass}}
{{on "click" (stop-propagation (or @onClick this.onClick))}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noiiicee!!!!

@tomnez tomnez merged commit 40916e4 into refactor/es6-classes Feb 18, 2020
@tomnez tomnez deleted the refactor/es6-polaris-link-DEV-69 branch February 18, 2020 15:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0