-
Notifications
You must be signed in to change notification settings - Fork 0
Providers
Brod edited this page Jun 27, 2018
·
6 revisions
You can add Providers to hyperbolé with the provider()
method.
hyperNg.provider(provider);
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';