bind

export bind(token: any) : ProviderBuilder

exported from angular2/core defined in angular2/src/core/di/provider.ts (line 347)

Creates a Provider.

To construct a Provider, bind a token to either a class, a value, a factory function, or to an existing token. See ProviderBuilder for more details.

The token is most commonly a class or OpaqueToken.