W3cubDocs

/Angular

ModuleWithProviders

interface

A wrapper around an NgModule that associates it with providers. Usage without a generic type is deprecated.

interface ModuleWithProviders<T> {
  ngModule: Type<T>
  providers?: Array<Provider | EnvironmentProviders>
}

See also

Properties

Property Description
ngModule: Type<T>
providers?: Array<Provider | EnvironmentProviders>

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/ModuleWithProviders