Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

feat: routing micro-syntax #19

Closed
btford opened this issue Nov 12, 2014 · 7 comments
Closed

feat: routing micro-syntax #19

btford opened this issue Nov 12, 2014 · 7 comments

Comments

@btford
Copy link
Contributor

btford commented Nov 12, 2014

@IgorMinar suggested a microsyntax within hrefs during the meeting:

<a href="@someRoute(5)"></a>

as opposed to:

<a router-link="{userId: 5}"></a>
@btford
Copy link
Contributor Author

btford commented Nov 12, 2014

@EisenbergEffect
Copy link
Contributor

I'd be careful about committing to a micro-syntax until Angular 2.0's
stance on that is resolved.

On Wed, Nov 12, 2014 at 6:01 PM, Brian Ford [email protected]
wrote:

Prior art:
https://github.com/angular-ui/ui-router/wiki/Quick-Reference#ui-sref


Reply to this email directly or view it on GitHub
#19 (comment).

Rob Eisenberg,
President - Blue Spire
www.durandaljs.com

@btford
Copy link
Contributor Author

btford commented Nov 12, 2014

Naturally. This is more of an open question.

@hworld
Copy link

hworld commented Nov 13, 2014

Randomly popping in to mention ui-router's issues with their ui-sref directive/microsyntax. I'll link you to the proposed solution at the end, but the whole thread may be meaningful: angular-ui/ui-router#395 (comment)

@nateabele
Copy link

I remember there was some question over whether using href directly would break fallbacks or something. Is that still a consideration or no?

@niemyjski
Copy link

I'm curious on how this will work as I have a ton of ui-srefs currently. It would be pretty easy to find and replace them...

@btford
Copy link
Contributor Author

btford commented Feb 5, 2015

I've since implemented this, so I'm going to close this issue. As always, I'm open to re-opening if someone finds anything else to discuss.

@btford btford closed this as completed Feb 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants