docs(Component): API docs for .encapsulation and .interpolation
This commit is contained in:
parent
f23b22a0f4
commit
136621ebc9
@ -655,20 +655,33 @@ export interface Component extends Directive {
|
|||||||
animations?: AnimationEntryMetadata[];
|
animations?: AnimationEntryMetadata[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify how the template and the styles should be encapsulated.
|
* Specifies how the template and the styles should be encapsulated:
|
||||||
* The default is {@link ViewEncapsulation#Emulated `ViewEncapsulation.Emulated`} if the view
|
* - {@link ViewEncapsulation#Native `ViewEncapsulation.Native`} to use shadow roots - only works
|
||||||
* has styles,
|
* if natively available on the platform,
|
||||||
* otherwise {@link ViewEncapsulation#None `ViewEncapsulation.None`}.
|
* - {@link ViewEncapsulation#Emulated `ViewEncapsulation.Emulated`} to use shimmed CSS that
|
||||||
|
* emulates the native behavior,
|
||||||
|
* - {@link ViewEncapsulation#None `ViewEncapsulation.None`} to use global CSS without any
|
||||||
|
* encapsulation.
|
||||||
|
*
|
||||||
|
* When no `encapsulation` is defined for the component, the default value from the
|
||||||
|
* {@link CompilerConfig} is used. The default is `ViewEncapsulation.Emulated`}. Provide a new
|
||||||
|
* `CompilerConfig` to override this value.
|
||||||
|
*
|
||||||
|
* If the encapsulation is set to `ViewEncapsulation.Emulated` and the component has no `styles`
|
||||||
|
* nor `styleUrls` the encapsulation will automatically be switched to `ViewEncapsulation.None`.
|
||||||
*/
|
*/
|
||||||
encapsulation?: ViewEncapsulation;
|
encapsulation?: ViewEncapsulation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Overrides the default encapsulation start and end delimiters (respectively `{{` and `}}`)
|
||||||
|
*/
|
||||||
interpolation?: [string, string];
|
interpolation?: [string, string];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the components that should be compiled as well when
|
* Defines the components that should be compiled as well when
|
||||||
* this component is defined. For each components listed here,
|
* this component is defined. For each components listed here,
|
||||||
* Angular will create a {@link ComponentFactory ComponentFactory} and store it in the
|
* Angular will create a {@link ComponentFactory} and store it in the
|
||||||
* {@link ComponentFactoryResolver ComponentFactoryResolver}.
|
* {@link ComponentFactoryResolver}.
|
||||||
*/
|
*/
|
||||||
entryComponents?: Array<Type<any>|any[]>;
|
entryComponents?: Array<Type<any>|any[]>;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user