Skip to content

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

Description

@hokster7

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions