Handling function call errors

You encountered the following error while working with Angular 8.

Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function.

Which of the following can be considered as valid reasons for the same?

1. You have set a provider’s use factory to an anonymous function.

2. You have set a provider’s use factory to an arrow function.

Options

  1. Only 1
  2. Only 2
  3. Both 1,2
  4. None of these

Related Posts

Close Bitnami banner
Bitnami