ngRoute.$route.current

current

Object

Reference to the current route definition. The route definition contains:

  • controller: The controller constructor as defined in the route definition.
  • locals: A map of locals which is used by $controller service for controller instantiation. The locals contain the resolved values of the resolve map. Additionally the locals also contain:

    • $scope - The current route scope.
    • $template - The current route template HTML.

    The locals will be assigned to the route scope's $resolve property. You can override the property name, using resolveAs in the route definition. See $routeProvider for more info.

doc_AngularJS
2016-03-29 16:12:24
Comments
Leave a Comment

Please login to continue.