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

Change router so route can be a callback function #2 #3359

Closed
wants to merge 2 commits into from
Closed

Change router so route can be a callback function #2 #3359

wants to merge 2 commits into from

Conversation

richardcrichardc
Copy link
Contributor

Continuation from #2834

@richardcrichardc
Copy link
Contributor Author

I see the router has been factored out of the core of angular. Is there any commentary on that anywhere?

@jeffbcross
Copy link
Contributor

@richardcrichardc there's a discussion about the move here: #2804

@petebacondarwin
Copy link
Contributor

PR Checklist (Minor Feature)

  • Contributor signed CLA now or in the past (if you just signed, leave a comment here with your real name for cross reference)
  • Feature improves existing core functionality
  • API is compatible with existing Angular apis and relevant standards (if applicable)
  • PR doesn't contain a breaking change
  • PR contains unit tests
  • PR contains e2e tests (if suitable)
  • PR contains documentation update
  • PR passes all tests on Travis (sanity)
  • PR passes all tests on ci.angularjs.org (cross-browser compatibility)
  • PR is rebased against recent master
  • PR is squashed into one commit per logical change
  • PR's commit messages are descriptive and allows us to autogenerate release notes (required commit message format)
  • All changes requested in review have been implemented

@petebacondarwin
Copy link
Contributor

@richardcrichardc - when you have a moment, can you read our commit message guidelines. See above. It will make it easier to merge your PRs.

@richardcrichardc
Copy link
Contributor Author

@petebacondarwin

How is this:

feat($routeProvider): Route can be a callback function

The route parameter of $routeProvider.when() and $routeProvider.otherwise()
can now be a callback function so that more elaborate routing logic can be
used without replacing the standard router.

If this is ok. Can you suggest the best way to get this into the pull request. Will a dummy commit, i.e. no actual real change, with the commit message do the job, or should I do something different.

@petebacondarwin
Copy link
Contributor

git commit --amend ...
git push -f

On 28 July 2013 22:21, Richard Collins notifications@github.com wrote:

@petebacondarwin https://github.com/petebacondarwin

How is this:

feat($routeProvider): Route can be a callback function

The route parameter of $routeProvider.when() and $routeProvider.otherwise()
can now be a callback function so that more elaborate routing logic can be
used without replacing the standard router.

If this is ok. Can you suggest the best way to get this into the pull
request. Will a dummy commit, i.e. no actual real change, with the commit
message do the job, or should I do something different.


Reply to this email directly or view it on GitHubhttps://github.com//pull/3359#issuecomment-21691360
.

The route parameter of $routeProvider.when() and $routeProvider.otherwise()
can now be a callback function so that more elaborate routing logic can be
used without replacing the standard router.
@Narretz
Copy link
Contributor

Narretz commented Jan 24, 2016

I think this has been obsoleted by making route a separate module.

@Narretz Narretz closed this Jan 24, 2016
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.

6 participants