$routeis used for deep-linking URLs to controllers and views (HTML partials). It watches$location.url()and tries to map the path to an existing route definition.
$routeParams
The$routeParamsservice allows you to retrieve the current set of route parameters.