Skip to content

WIP: angular1 router - #3138

Closed
shahata wants to merge 3 commits into
angular:masterfrom
shahata:btford-feat-angular1-router
Closed

shahata wants to merge 3 commits into
angular:masterfrom
shahata:btford-feat-angular1-router

Conversation

@shahata

@shahata shahata commented Jul 18, 2015

Copy link
Copy Markdown

No description provided.

@googlebot

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't this method use hasOwnProperty() ?
Same goes for contains() and isEmpty().

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It doesn't really matter in this case; you'll only ever have Objects passed in created by the router itself, so there won't be anything on the prototype unless the user mucks around with Object.prototype.

This file mirrors the implementation of facade/collection.ts.

@btford

btford commented Aug 10, 2015

Copy link
Copy Markdown
Contributor

We need to chat about canActivate and how to deal with the traceur runtime.

Other than that, we decided to use properties on the controller fn to store annotations, and that we'd convert a template + controller pair into a directive so that we don't have two code paths but can still handle legacy controllers.

We also still have lots to do in terms of ergonomics, but if we use fn properties as the canonical storage location, others can build helpers on top to make it nicer to write route configs for Angular 1.

@btford

btford commented Aug 18, 2015

Copy link
Copy Markdown
Contributor

I'm closing this in favor of #3698. Going to finally get this in today. 😄

@btford btford closed this Aug 18, 2015
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants