Bootstraps an Alterior application module and returns a set of Angular
compatible dependency injection providers. You should then pass those providers
to the providers
declaration of an @NgModule
or @Component
class.
Creates a new dynamic Alterior application module which imports the given
modules and returns a set of Angular-compatible dependency injection
providers. You should pass the result into the providers
property of
an @NgModule
or @Component
to make the services provided by
Alterior available within the scope you are declaring.
The set of Alterior modules you wish to bootstrap
Generated using TypeDoc
Provides support for using Alterior modules within a larger Angular host application.
Important:
import "reflect-metadata";
Make sure you
import "reflect-metadata";
at the top of your Angular application's entrypoint (usually "main.ts"). If you fail to do so, the necessary metadata for some of your Alterior modules may not properly load. It is also important to ensure that your overall application has only one version of "reflect-metadata". Usenpm ls reflect-metadata
and ensure that only one version is present and all arededuped
.Enable "emitDecoratorMetadata" if you use Alterior in the app project
Note: If you define Alterior modules and services within your Angular application, you will also need to ensure
"emitDecoratorMetadata": true
is present in thecompilerOptions
of yourtsconfig.json
. Failure to do so will cause Alterior to be unable to properly resolve the dependency injections within your classes defined in the application project.