
committed by
Matias Niemelä

parent
6fbc2b3be0
commit
901436e46f
@ -13,7 +13,7 @@ import {ComponentRef} from './linker/component_factory';
|
||||
/**
|
||||
* A DI Token representing a unique string id assigned to the application by Angular and used
|
||||
* primarily for prefixing application attributes and CSS styles when
|
||||
* {@link ViewEncapsulation#Emulated} is being used.
|
||||
* {@link ViewEncapsulation#Emulated ViewEncapsulation.Emulated} is being used.
|
||||
*
|
||||
* If you need to avoid randomly generated value to be used as an application id, you can provide
|
||||
* a custom value via a DI provider <!-- TODO: provider --> configuring the root {@link Injector}
|
||||
|
@ -11,7 +11,7 @@
|
||||
*/
|
||||
export abstract class ChangeDetectorRef {
|
||||
/**
|
||||
* Marks all {@link ChangeDetectionStrategy#OnPush} ancestors as to be checked.
|
||||
* Marks all {@link ChangeDetectionStrategy#OnPush OnPush} ancestors as to be checked.
|
||||
*
|
||||
* <!-- TODO: Add a link to a chapter on OnPush components -->
|
||||
*
|
||||
@ -53,9 +53,8 @@ export abstract class ChangeDetectorRef {
|
||||
*
|
||||
* The detached change detector will not be checked until it is reattached.
|
||||
*
|
||||
* This can also be used in combination with {@link ChangeDetectorRef#detectChanges} to implement
|
||||
* local change
|
||||
* detection checks.
|
||||
* This can also be used in combination with {@link ChangeDetectorRef#detectChanges detectChanges}
|
||||
* to implement local change detection checks.
|
||||
*
|
||||
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
||||
* <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
|
||||
@ -106,9 +105,8 @@ export abstract class ChangeDetectorRef {
|
||||
/**
|
||||
* Checks the change detector and its children.
|
||||
*
|
||||
* This can also be used in combination with {@link ChangeDetectorRef#detach} to implement local
|
||||
* change detection
|
||||
* checks.
|
||||
* This can also be used in combination with {@link ChangeDetectorRef#detach detach} to implement
|
||||
* local change detection checks.
|
||||
*
|
||||
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
||||
* <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
|
||||
@ -123,7 +121,7 @@ export abstract class ChangeDetectorRef {
|
||||
* check
|
||||
* every five seconds.
|
||||
*
|
||||
* See {@link ChangeDetectorRef#detach} for more information.
|
||||
* See {@link ChangeDetectorRef#detach detach} for more information.
|
||||
*/
|
||||
abstract detectChanges(): void;
|
||||
|
||||
|
@ -83,7 +83,7 @@ export abstract class ReflectiveInjector implements Injector {
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* See {@link ReflectiveInjector#fromResolvedProviders} for more info.
|
||||
* See {@link ReflectiveInjector#fromResolvedProviders fromResolvedProviders} for more info.
|
||||
*/
|
||||
static resolve(providers: Provider[]): ResolvedReflectiveProvider[] {
|
||||
return resolveReflectiveProviders(providers);
|
||||
@ -113,7 +113,8 @@ export abstract class ReflectiveInjector implements Injector {
|
||||
*
|
||||
* This function is slower than the corresponding `fromResolvedProviders`
|
||||
* because it needs to resolve the passed-in providers first.
|
||||
* See {@link ReflectiveInjector#resolve} and {@link ReflectiveInjector#fromResolvedProviders}.
|
||||
* See {@link ReflectiveInjector#resolve resolve} and
|
||||
* {@link ReflectiveInjector#fromResolvedProviders fromResolvedProviders}.
|
||||
*/
|
||||
static resolveAndCreate(providers: Provider[], parent?: Injector): ReflectiveInjector {
|
||||
const ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);
|
||||
@ -190,7 +191,8 @@ export abstract class ReflectiveInjector implements Injector {
|
||||
*
|
||||
* This function is slower than the corresponding `createChildFromResolved`
|
||||
* because it needs to resolve the passed-in providers first.
|
||||
* See {@link ReflectiveInjector#resolve} and {@link ReflectiveInjector#createChildFromResolved}.
|
||||
* See {@link ReflectiveInjector#resolve resolve} and
|
||||
* {@link ReflectiveInjector#createChildFromResolved createChildFromResolved}.
|
||||
*/
|
||||
abstract resolveAndCreateChild(providers: Provider[]): ReflectiveInjector;
|
||||
|
||||
|
@ -18,9 +18,8 @@ import {EmbeddedViewRef} from './view_ref';
|
||||
* the constructor of the directive using the `TemplateRef` Token. Alternatively you can query for
|
||||
* the `TemplateRef` from a Component or a Directive via {@link Query}.
|
||||
*
|
||||
* To instantiate Embedded Views based on a Template, use
|
||||
* {@link ViewContainerRef#createEmbeddedView}, which will create the View and attach it to the
|
||||
* View Container.
|
||||
* To instantiate Embedded Views based on a Template, use {@link ViewContainerRef#
|
||||
* createEmbeddedView}, which will create the View and attach it to the View Container.
|
||||
* @stable
|
||||
*/
|
||||
export abstract class TemplateRef<C> {
|
||||
|
@ -73,8 +73,8 @@ export abstract class ViewContainerRef {
|
||||
* Instantiates a single {@link Component} and inserts its Host View into this container at the
|
||||
* specified `index`.
|
||||
*
|
||||
* The component is instantiated using its {@link ComponentFactory} which can be
|
||||
* obtained via {@link ComponentFactoryResolver#resolveComponentFactory}.
|
||||
* The component is instantiated using its {@link ComponentFactory} which can be obtained via
|
||||
* {@link ComponentFactoryResolver#resolveComponentFactory resolveComponentFactory}.
|
||||
*
|
||||
* If `index` is not specified, the new View will be inserted as the last View in the container.
|
||||
*
|
||||
|
@ -9,15 +9,15 @@
|
||||
/**
|
||||
* Defines template and style encapsulation options available for Component's {@link Component}.
|
||||
*
|
||||
* See {@link Component#encapsulation}.
|
||||
* See {@link Component#encapsulation encapsulation}.
|
||||
* @stable
|
||||
*/
|
||||
export enum ViewEncapsulation {
|
||||
/**
|
||||
* Emulate `Native` scoping of styles by adding an attribute containing surrogate id to the Host
|
||||
* Element and pre-processing the style rules provided via
|
||||
* {@link Component#styles} or {@link Component#styleUrls}, and adding the new Host Element
|
||||
* attribute to all selectors.
|
||||
* Element and pre-processing the style rules provided via {@link Component#styles styles} or
|
||||
* {@link Component#styleUrls styleUrls}, and adding the new Host Element attribute to all
|
||||
* selectors.
|
||||
*
|
||||
* This is the default option.
|
||||
*/
|
||||
|
@ -99,9 +99,8 @@ export const Renderer2Interceptor = new InjectionToken<Renderer2[]>('Renderer2In
|
||||
*
|
||||
* Use this service to bypass Angular's templating and make custom UI changes that can't be
|
||||
* expressed declaratively. For example if you need to set a property or an attribute whose name is
|
||||
* not statically known, use {@link Renderer#setElementProperty} or {@link
|
||||
* Renderer#setElementAttribute}
|
||||
* respectively.
|
||||
* not statically known, use {@link Renderer#setElementProperty setElementProperty} or
|
||||
* {@link Renderer#setElementAttribute setElementAttribute} respectively.
|
||||
*
|
||||
* If you are implementing a custom renderer, you must implement this interface.
|
||||
*
|
||||
|
Reference in New Issue
Block a user