title: TypeScript type for AngularJS $routeParams?
body: <p>Can you guys tell me why, when I code AngularJS with TypeScript in Visual Studio, I cant compile this code: ? am I using the right type <strong>ng.route.IRouteParamsService</strong> for <strong>$routeParams</strong> ???</p>
  
  <p>var param = $routeParams.id wont compile, but its a valid way to write code.
  If I dont declare type for $routeParams, there are no compiler complains and everything works. <strong>Doesnt make much sense to me. Please advice.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/xRbS3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xRbS3.png" alt="List item"></a></p>