Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$routeProvider.when fails when the URL pattern has two segments #24

Open
fatuhoku opened this issue Feb 25, 2013 · 1 comment
Open

$routeProvider.when fails when the URL pattern has two segments #24

fatuhoku opened this issue Feb 25, 2013 · 1 comment

Comments

@fatuhoku
Copy link

Try make an app with the following routeProvider definition:

  $routeProvider.when('/:first/:secondmilestone', {
    templateUrl: 'partials/template.html',
    controller: 'mycontroller'
  });

Regardless of what is contained within mycontroller or template.html, the browser

I also tried to use fixed routes but they didn't work at all either.

  $routeProvider.when('/this/doesnt/work', {
     ...
  });

This is a pretty critical piece of functionality!

@kievechua
Copy link

Hi @fushunpoon, I don't think this is an issue as this's how router work.
You may want to post at angular forum instead of here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants