Skip to content

Providers

Brod edited this page Jun 27, 2018 · 6 revisions

Usage

You can add Providers to hyperbolé with the provider() method.

hyperNg.provider(provider);

Naming

All Providers must be named for dependency injection and by default the constructor name will be used.

class AccountProvider {
  static $provider = '$account';
  constructor() {}
}hyperNg.provider(AccountProvider);
// '$account';