refactor(ivy): fix formatting issue with `select` comment (#29576)
PR Close #29576
This commit is contained in:
parent
147a15a419
commit
b71cd7b4ee
|
@ -25,7 +25,7 @@ import {executeHooks, executePreOrderHooks, registerPostOrderHooks, registerPreO
|
||||||
import {ACTIVE_INDEX, LContainer, VIEWS} from '../interfaces/container';
|
import {ACTIVE_INDEX, LContainer, VIEWS} from '../interfaces/container';
|
||||||
import {ComponentDef, ComponentTemplate, DirectiveDef, DirectiveDefListOrFactory, PipeDefListOrFactory, RenderFlags, ViewQueriesFunction} from '../interfaces/definition';
|
import {ComponentDef, ComponentTemplate, DirectiveDef, DirectiveDefListOrFactory, PipeDefListOrFactory, RenderFlags, ViewQueriesFunction} from '../interfaces/definition';
|
||||||
import {INJECTOR_BLOOM_PARENT_SIZE, NodeInjectorFactory} from '../interfaces/injector';
|
import {INJECTOR_BLOOM_PARENT_SIZE, NodeInjectorFactory} from '../interfaces/injector';
|
||||||
import {AttributeMarker, InitialInputData, InitialInputs, LocalRefExtractor, PropertyAliasValue, PropertyAliases, TAttributes, TContainerNode, TElementContainerNode, TElementNode, TIcuContainerNode, TNode, TNodeFlags, TNodeProviderIndexes, TNodeType, TProjectionNode, TViewNode} from '../interfaces/node';
|
import {AttributeMarker, InitialInputData, InitialInputs, LocalRefExtractor, PropertyAliasValue, TAttributes, TContainerNode, TElementContainerNode, TElementNode, TIcuContainerNode, TNode, TNodeFlags, TNodeProviderIndexes, TNodeType, TProjectionNode, TViewNode} from '../interfaces/node';
|
||||||
import {CssSelectorList} from '../interfaces/projection';
|
import {CssSelectorList} from '../interfaces/projection';
|
||||||
import {LQueries} from '../interfaces/query';
|
import {LQueries} from '../interfaces/query';
|
||||||
import {GlobalTargetResolver, RComment, RElement, RText, Renderer3, RendererFactory3, isProceduralRenderer} from '../interfaces/renderer';
|
import {GlobalTargetResolver, RComment, RElement, RText, Renderer3, RendererFactory3, isProceduralRenderer} from '../interfaces/renderer';
|
||||||
|
@ -1102,17 +1102,17 @@ export function elementEnd(): void {
|
||||||
*
|
*
|
||||||
* ```ts
|
* ```ts
|
||||||
* (rf: RenderFlags, ctx: any) => {
|
* (rf: RenderFlags, ctx: any) => {
|
||||||
* if (rf & 1) {
|
* if (rf & 1) {
|
||||||
* element(0, 'div');
|
* element(0, 'div');
|
||||||
* }
|
* }
|
||||||
* if (rf & 2) {
|
* if (rf & 2) {
|
||||||
* select(0); // Select the <div/> created above.
|
* select(0); // Select the <div/> created above.
|
||||||
* property('title', 'test');
|
* property('title', 'test');
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
* @param index the index of the item to act on with the following instructions
|
* @param index the index of the item to act on with the following instructions
|
||||||
*/
|
*/
|
||||||
export function select(index: number): void {
|
export function select(index: number): void {
|
||||||
ngDevMode && assertGreaterThan(index, -1, 'Invalid index');
|
ngDevMode && assertGreaterThan(index, -1, 'Invalid index');
|
||||||
ngDevMode &&
|
ngDevMode &&
|
||||||
|
|
Loading…
Reference in New Issue