downgradeComponent
function
A helper function that allows an Angular component to be used from AngularJS.
API
Description
Usage Notes
function downgradeComponent( info: { component: Type<any>; downgradedModule?: string | undefined; propagateDigest?: boolean | undefined; inputs?: string[] | undefined; outputs?: string[] | undefined; selectors?: string[] | undefined; }): any;
downgradeComponent
any
A helper function that allows an Angular component to be used from AngularJS.
Part of the upgrade/static library for hybrid upgrade apps that support AOT compilation
This helper function returns a factory function to be used for registering an AngularJS wrapper directive for "downgrading" an Angular component.
@paraminfo
(This option is only necessary when using `downgradeModule()` to downgrade more than one Angular module.) - `propagateDigest?: boolean`: Whether to perform
{ component: Type<any>; downgradedModule?: string | undefined; propagateDigest?: boolean | undefined; inputs?: string[] | undefined; outputs?: string[] | undefined; selectors?: string[] | undefined; }
contains information about the Component that is being downgraded:
component: Type<any>
: The type of the Component that will be downgradeddowngradedModule?: string
: The name of the downgraded module (if any) that the component "belongs to", as returned by a call todowngradeModule()
. It is the module, whose corresponding Angular module will be bootstrapped, when the component needs to be instantiated.
(This option is only necessary when using `downgradeModule()` to downgrade more than one Angular module.) - `propagateDigest?: boolean`: Whether to perform
ChangeDetectorRef#detectChanges
on the
component on every
[$digest](https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$digest). If set to `false`,
change detection will still be performed when any of the component's inputs changes.
(Default: true)@returns
any
Jump to details