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[];
|
||||
|
||||
/**
|
||||
* Specify how the template and the styles should be encapsulated.
|
||||
* The default is {@link ViewEncapsulation#Emulated `ViewEncapsulation.Emulated`} if the view
|
||||
* has styles,
|
||||
* otherwise {@link ViewEncapsulation#None `ViewEncapsulation.None`}.
|
||||
* Specifies how the template and the styles should be encapsulated:
|
||||
* - {@link ViewEncapsulation#Native `ViewEncapsulation.Native`} to use shadow roots - only works
|
||||
* if natively available on the platform,
|
||||
* - {@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;
|
||||
|
||||
/**
|
||||
* Overrides the default encapsulation start and end delimiters (respectively `{{` and `}}`)
|
||||
*/
|
||||
interpolation?: [string, string];
|
||||
|
||||
/**
|
||||
* Defines the components that should be compiled as well when
|
||||
* this component is defined. For each components listed here,
|
||||
* Angular will create a {@link ComponentFactory ComponentFactory} and store it in the
|
||||
* {@link ComponentFactoryResolver ComponentFactoryResolver}.
|
||||
* Angular will create a {@link ComponentFactory} and store it in the
|
||||
* {@link ComponentFactoryResolver}.
|
||||
*/
|
||||
entryComponents?: Array<Type<any>|any[]>;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue