buschtoens / ember-link

Link primitive to pass around self-contained route references. It's {{link-to}}, but better!

Home Page:https://buschtoens.github.io/ember-link/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `toString()` method alias for `url`

buschtoens opened this issue · comments

The code shown in #271 would be nicer, if Link had a toString() method, that returns the url.

Then you could do:

<Ui::Button
-  @link={{link "signup" query=(hash callback=(get (link "checkout") "url"))}}
+  @link={{link "signup" query=(hash callback=(link "checkout"))}}
>
  Please sign up first to continue
</Ui::Button>