The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

$routeProvider api

$routeProvider api

1:50
AngularJS's $routeProvider has a very basic api for defining your application's routes. $routeProvider.when() is used to match a url pattern to a view while $routeProvider.otherwise() is used to render a view when there is no match to a url pattern.
Watch this lesson now
Avatar
egghead.io

AngularJS's $routeProvider has a very basic api for defining your application's routes. $routeProvider.when() is used to match a url pattern to a view while $routeProvider.otherwise() is used to render a view when there is no match to a url pattern.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?