What is the purpose of the data property (seen in the example below) in a route configuration?

       path: ‘customers’,
       component: CustomerListComponent,
       data: { accountSection:true }
  •  a key/value mapping for setting @Input values on the routed component instance
  •  a way to include static, read-only data associated with the route that can be retrieved from the ActivatedRoute
  •  a property on the route that can be used to load dynamic data for the route
  •  an object that will get auto-injected into the routed component’s constructor.

Leave a Reply

Your email address will not be published. Required fields are marked *