Meteor_angularjs icon indicating copy to clipboard operation
Meteor_angularjs copied to clipboard

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

Open hokster7 opened this issue 12 years ago • 1 comments

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!

hokster7 avatar Feb 25 '13 12:02 hokster7

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.

kievechua avatar Mar 18 '13 23:03 kievechua