@angular/core
Advanced tools
| /** | ||
| * Updates the expression in the given object if it has changed and returns a copy of the object. | ||
| * Or if the expression hasn't changed, returns NO_CHANGE. | ||
| * | ||
| * @param objIndex Index of object blueprint in objectLiterals | ||
| * @param obj Object to update | ||
| * @param key Key to set in object | ||
| * @param exp Expression to set at key | ||
| * @returns A copy of the object or NO_CHANGE | ||
| */ | ||
| export declare function objectLiteral1(objIndex: number, obj: any, key: string | number, exp: any): any; | ||
| /** | ||
| * Updates the expressions in the given object if they have changed and returns a copy of the | ||
| * object. | ||
| * Or if no expressions have changed, returns NO_CHANGE. | ||
| * | ||
| * @param objIndex | ||
| * @param obj | ||
| * @param key1 | ||
| * @param exp1 | ||
| * @param key2 | ||
| * @param exp2 | ||
| * @returns A copy of the array or NO_CHANGE | ||
| */ | ||
| export declare function objectLiteral2(objIndex: number, obj: any, key1: number, exp1: any, key2: number, exp2: any): any; | ||
| /** | ||
| * Updates the expressions in the given object if they have changed and returns a copy of the | ||
| * object. | ||
| * Or if no expressions have changed, returns NO_CHANGE. | ||
| * | ||
| * @param objIndex | ||
| * @param obj | ||
| * @param key1 | ||
| * @param exp1 | ||
| * @param key2 | ||
| * @param exp2 | ||
| * @param key3 | ||
| * @param exp3 | ||
| * @returns A copy of the object or NO_CHANGE | ||
| */ | ||
| export declare function objectLiteral3(objIndex: number, obj: any, key1: number, exp1: any, key2: number, exp2: any, key3: number, exp3: any): any; | ||
| /** | ||
| * Updates the expressions in the given object if they have changed and returns a copy of the | ||
| * object. | ||
| * Or if no expressions have changed, returns NO_CHANGE. | ||
| * | ||
| * @param objIndex | ||
| * @param obj | ||
| * @param key1 | ||
| * @param exp1 | ||
| * @param key2 | ||
| * @param exp2 | ||
| * @param key3 | ||
| * @param exp3 | ||
| * @param key4 | ||
| * @param exp4 | ||
| * @returns A copy of the object or NO_CHANGE | ||
| */ | ||
| export declare function objectLiteral4(objIndex: number, obj: any, key1: number, exp1: any, key2: number, exp2: any, key3: number, exp3: any, key4: number, exp4: any): any; | ||
| /** | ||
| * Updates the expressions in the given object if they have changed and returns a copy of the | ||
| * object. | ||
| * Or if no expressions have changed, returns NO_CHANGE. | ||
| * | ||
| * @param objIndex | ||
| * @param obj | ||
| * @param key1 | ||
| * @param exp1 | ||
| * @param key2 | ||
| * @param exp2 | ||
| * @param key3 | ||
| * @param exp3 | ||
| * @param key4 | ||
| * @param exp4 | ||
| * @param key5 | ||
| * @param exp5 | ||
| * @returns A copy of the object or NO_CHANGE | ||
| */ | ||
| export declare function objectLiteral5(objIndex: number, obj: any, key1: number, exp1: any, key2: number, exp2: any, key3: number, exp3: any, key4: number, exp4: any, key5: number, exp5: any): any; | ||
| /** | ||
| * Updates the expressions in the given object if they have changed and returns a copy of the | ||
| * object. | ||
| * Or if no expressions have changed, returns NO_CHANGE. | ||
| * | ||
| * @param objIndex | ||
| * @param obj | ||
| * @param key1 | ||
| * @param exp1 | ||
| * @param key2 | ||
| * @param exp2 | ||
| * @param key3 | ||
| * @param exp3 | ||
| * @param key4 | ||
| * @param exp4 | ||
| * @param key5 | ||
| * @param exp5 | ||
| * @param key6 | ||
| * @param exp6 | ||
| * @returns A copy of the object or NO_CHANGE | ||
| */ | ||
| export declare function objectLiteral6(objIndex: number, obj: any, key1: number, exp1: any, key2: number, exp2: any, key3: number, exp3: any, key4: number, exp4: any, key5: number, exp5: any, key6: number, exp6: any): any; | ||
| /** | ||
| * Updates the expressions in the given object if they have changed and returns a copy of the | ||
| * object. | ||
| * Or if no expressions have changed, returns NO_CHANGE. | ||
| * | ||
| * @param objIndex | ||
| * @param obj | ||
| * @param key1 | ||
| * @param exp1 | ||
| * @param key2 | ||
| * @param exp2 | ||
| * @param key3 | ||
| * @param exp3 | ||
| * @param key4 | ||
| * @param exp4 | ||
| * @param key5 | ||
| * @param exp5 | ||
| * @param key6 | ||
| * @param exp6 | ||
| * @param key7 | ||
| * @param exp7 | ||
| * @returns A copy of the object or NO_CHANGE | ||
| */ | ||
| export declare function objectLiteral7(objIndex: number, obj: any, key1: number, exp1: any, key2: number, exp2: any, key3: number, exp3: any, key4: number, exp4: any, key5: number, exp5: any, key6: number, exp6: any, key7: number, exp7: any): any; | ||
| /** | ||
| * Updates the expressions in the given object if they have changed and returns a copy of the | ||
| * object. | ||
| * Or if no expressions have changed, returns NO_CHANGE. | ||
| * | ||
| * @param objIndex | ||
| * @param obj | ||
| * @param key1 | ||
| * @param exp1 | ||
| * @param key2 | ||
| * @param exp2 | ||
| * @param key3 | ||
| * @param exp3 | ||
| * @param key4 | ||
| * @param exp4 | ||
| * @param key5 | ||
| * @param exp5 | ||
| * @param key6 | ||
| * @param exp6 | ||
| * @param key7 | ||
| * @param exp7 | ||
| * @param key8 | ||
| * @param exp8 | ||
| * @returns A copy of the object or NO_CHANGE | ||
| */ | ||
| export declare function objectLiteral8(objIndex: number, obj: any, key1: number, exp1: any, key2: number, exp2: any, key3: number, exp3: any, key4: number, exp4: any, key5: number, exp5: any, key6: number, exp6: any, key7: number, exp7: any, key8: number, exp8: any): any; |
| /** | ||
| * @license | ||
| * Copyright Google Inc. All Rights Reserved. | ||
| * | ||
| * Use of this source code is governed by an MIT-style license that can be | ||
| * found in the LICENSE file at https://angular.io/license | ||
| */ | ||
| import { PipeDef } from './interfaces/definition'; | ||
| /** | ||
| * Create a pipe. | ||
| * | ||
| * @param index Pipe index where the pipe will be stored. | ||
| * @param pipeDef Pipe definition object for registering life cycle hooks. | ||
| * @param pipe A Pipe instance. | ||
| */ | ||
| export declare function pipe<T>(index: number, pipeDef: PipeDef<T>, pipe: T): void; | ||
| /** | ||
| * Invokes a pure pipe with 4 arguments. | ||
| * | ||
| * This instruction acts as a guard to {@link PipeTransform#transform} invoking | ||
| * the pipe only when an input to the pipe changes. | ||
| * | ||
| * @param index Pipe index where the pipe was stored on creation. | ||
| * @param v1 1st argument to {@link PipeTransform#transform}. | ||
| */ | ||
| export declare function pipeBind1(index: number, v1: any): any; | ||
| /** | ||
| * Invokes a pure pipe with 4 arguments. | ||
| * | ||
| * This instruction acts as a guard to {@link PipeTransform#transform} invoking | ||
| * the pipe only when an input to the pipe changes. | ||
| * | ||
| * @param index Pipe index where the pipe was stored on creation. | ||
| * @param v1 1st argument to {@link PipeTransform#transform}. | ||
| * @param v2 2nd argument to {@link PipeTransform#transform}. | ||
| */ | ||
| export declare function pipeBind2(index: number, v1: any, v2: any): any; | ||
| /** | ||
| * Invokes a pure pipe with 4 arguments. | ||
| * | ||
| * This instruction acts as a guard to {@link PipeTransform#transform} invoking | ||
| * the pipe only when an input to the pipe changes. | ||
| * | ||
| * @param index Pipe index where the pipe was stored on creation. | ||
| * @param v1 1st argument to {@link PipeTransform#transform}. | ||
| * @param v2 2nd argument to {@link PipeTransform#transform}. | ||
| * @param v3 4rd argument to {@link PipeTransform#transform}. | ||
| */ | ||
| export declare function pipeBind3(index: number, v1: any, v2: any, v3: any): any; | ||
| /** | ||
| * Invokes a pure pipe with 4 arguments. | ||
| * | ||
| * This instruction acts as a guard to {@link PipeTransform#transform} invoking | ||
| * the pipe only when an input to the pipe changes. | ||
| * | ||
| * @param index Pipe index where the pipe was stored on creation. | ||
| * @param v1 1st argument to {@link PipeTransform#transform}. | ||
| * @param v2 2nd argument to {@link PipeTransform#transform}. | ||
| * @param v3 3rd argument to {@link PipeTransform#transform}. | ||
| * @param v4 4th argument to {@link PipeTransform#transform}. | ||
| */ | ||
| export declare function pipeBind4(index: number, v1: any, v2: any, v3: any, v4: any): any; | ||
| /** | ||
| * Invokes a pure pipe with variable number of arguments. | ||
| * | ||
| * This instruction acts as a guard to {@link PipeTransform#transform} invoking | ||
| * the pipe only when an input to the pipe changes. | ||
| * | ||
| * @param index Pipe index where the pipe was stored on creation. | ||
| * @param values Array of arguments to pass to {@link PipeTransform#transform} method. | ||
| */ | ||
| export declare function pipeBindV(index: number, values: any[]): any; |
| /** | ||
| * @license Angular v6.0.0-beta.2 | ||
| * @license Angular v6.0.0-beta.3 | ||
| * (c) 2010-2018 Google, Inc. https://angular.io/ | ||
@@ -39,3 +39,3 @@ * License: MIT | ||
| /** | ||
| * @license Angular v6.0.0-beta.2 | ||
| * @license Angular v6.0.0-beta.3 | ||
| * (c) 2010-2018 Google, Inc. https://angular.io/ | ||
@@ -42,0 +42,0 @@ * License: MIT |
| /** | ||
| * @license Angular v6.0.0-beta.2 | ||
| * @license Angular v6.0.0-beta.3 | ||
| * (c) 2010-2018 Google, Inc. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v6.0.0-beta.2 | ||
| * @license Angular v6.0.0-beta.3 | ||
| * (c) 2010-2018 Google, Inc. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
+1
-1
| /** | ||
| * @license Angular v6.0.0-beta.2 | ||
| * @license Angular v6.0.0-beta.3 | ||
| * (c) 2010-2018 Google, Inc. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
+1
-1
| { | ||
| "name": "@angular/core", | ||
| "version": "6.0.0-beta.2", | ||
| "version": "6.0.0-beta.3", | ||
| "description": "Angular - the core framework", | ||
@@ -5,0 +5,0 @@ "main": "./bundles/core.umd.js", |
@@ -757,3 +757,19 @@ /** | ||
| export interface Pipe { | ||
| /** | ||
| * Name of the pipe. | ||
| * | ||
| * The pipe name is used in template bindings. For example if a pipe is named | ||
| * `myPipe` then it would be used in the template binding expression like | ||
| * so: `{{ exp | myPipe }}`. | ||
| */ | ||
| name: string; | ||
| /** | ||
| * If Pipe is pure (its output depends only on its input.) | ||
| * | ||
| * Normally pipe's `translate` method is invoked on each change detection | ||
| * cycle. If the cost of invoking the `translated` method is non-trivial and | ||
| * if the output of the pipe depends only on its input, then declaring a pipe | ||
| * as pure would short circuit the invocation of the `translate` method and | ||
| * invoke the method only when the inputs to the pipe change. | ||
| */ | ||
| pure?: boolean; | ||
@@ -764,2 +780,8 @@ } | ||
| * | ||
| * Use the `@Pipe` annotation to declare that a given class is a pipe. A pipe | ||
| * class must also implement {@link PipeTransform} interface. | ||
| * | ||
| * To use the pipe include a reference to the pipe class in | ||
| * {@link NgModule#declarations}. | ||
| * | ||
| * @stable | ||
@@ -766,0 +788,0 @@ * @Annotation |
@@ -0,3 +1,4 @@ | ||
| import { PipeTransform } from '../change_detection/pipe_transform'; | ||
| import { Type } from '../type'; | ||
| import { ComponentDef, ComponentDefArgs, DirectiveDef, DirectiveDefArgs } from './interfaces/definition'; | ||
| import { ComponentDef, ComponentDefArgs, DirectiveDef, DirectiveDefArgs, PipeDef } from './interfaces/definition'; | ||
| /** | ||
@@ -12,3 +13,3 @@ * Create a component definition object. | ||
| * // [Symbol] syntax will not be supported by TypeScript until v2.7 | ||
| * static [COMPONENT_DEF_SYMBOL] = defineComponent({ | ||
| * static ngComponentDef = defineComponent({ | ||
| * ... | ||
@@ -20,3 +21,3 @@ * }); | ||
| export declare function defineComponent<T>(componentDefinition: ComponentDefArgs<T>): ComponentDef<T>; | ||
| export declare function NgOnChangesFeature<T>(type: Type<T>): (definition: DirectiveDef<any>) => void; | ||
| export declare function NgOnChangesFeature(definition: DirectiveDef<any>): void; | ||
| export declare function PublicFeature<T>(definition: DirectiveDef<T>): void; | ||
@@ -31,3 +32,3 @@ /** | ||
| * // [Symbol] syntax will not be supported by TypeScript until v2.7 | ||
| * static [DIRECTIVE_DEF_SYMBOL] = defineDirective({ | ||
| * static ngDirectiveDef = defineDirective({ | ||
| * ... | ||
@@ -39,1 +40,22 @@ * }); | ||
| export declare const defineDirective: <T>(directiveDefinition: DirectiveDefArgs<T>) => DirectiveDef<T>; | ||
| /** | ||
| * Create a pipe definition object. | ||
| * | ||
| * # Example | ||
| * ``` | ||
| * class MyPipe implements PipeTransform { | ||
| * // Generated by Angular Template Compiler | ||
| * static ngPipeDef = definePipe({ | ||
| * ... | ||
| * }); | ||
| * } | ||
| * ``` | ||
| * @param type Pipe class reference. Needed to extract pipe lifecycle hooks. | ||
| * @param factory A factory for creating a pipe instance. | ||
| * @param pure Whether the pipe is pure. | ||
| */ | ||
| export declare function definePipe<T>({type, factory, pure}: { | ||
| type: Type<T>; | ||
| factory: () => PipeTransform; | ||
| pure?: boolean; | ||
| }): PipeDef<T>; |
@@ -9,9 +9,11 @@ /** | ||
| import { createComponentRef, detectChanges, getHostElement, markDirty, renderComponent } from './component'; | ||
| import { NgOnChangesFeature, PublicFeature, defineComponent, defineDirective } from './definition'; | ||
| import { NgOnChangesFeature, PublicFeature, defineComponent, defineDirective, definePipe } from './definition'; | ||
| import { ComponentDef, ComponentTemplate, ComponentType, DirectiveDef, DirectiveDefFlags, DirectiveType } from './interfaces/definition'; | ||
| export { InjectFlags, QUERY_READ_CONTAINER_REF, QUERY_READ_ELEMENT_REF, QUERY_READ_FROM_NODE, QUERY_READ_TEMPLATE_REF, inject, injectElementRef, injectTemplateRef, injectViewContainerRef } from './di'; | ||
| export { NO_CHANGE as NC, bind as b, bind1 as b1, bind2 as b2, bind3 as b3, bind4 as b4, bind5 as b5, bind6 as b6, bind7 as b7, bind8 as b8, bindV as bV, componentRefresh as r, container as C, containerRefreshStart as cR, containerRefreshEnd as cr, elementAttribute as a, elementClass as k, elementEnd as e, elementProperty as p, elementStart as E, elementStyle as s, listener as L, memory as m, projection as P, projectionDef as pD, text as T, textBinding as t, viewStart as V, viewEnd as v } from './instructions'; | ||
| export { pipe as Pp, pipeBind1 as pb1, pipeBind2 as pb2, pipeBind3 as pb3, pipeBind4 as pb4, pipeBindV as pbV } from './pipe'; | ||
| export { QueryList, query as Q, queryRefresh as qR } from './query'; | ||
| export { ComponentDef, ComponentTemplate, ComponentType, DirectiveDef, DirectiveDefFlags, DirectiveType, NgOnChangesFeature, PublicFeature, defineComponent, defineDirective }; | ||
| export { objectLiteral1 as o1, objectLiteral2 as o2, objectLiteral3 as o3, objectLiteral4 as o4, objectLiteral5 as o5, objectLiteral6 as o6, objectLiteral7 as o7, objectLiteral8 as o8 } from './object_literal'; | ||
| export { ComponentDef, ComponentTemplate, ComponentType, DirectiveDef, DirectiveDefFlags, DirectiveType, NgOnChangesFeature, PublicFeature, defineComponent, defineDirective, definePipe }; | ||
| export { createComponentRef, detectChanges, getHostElement, markDirty, renderComponent }; | ||
| export { CssSelector } from './interfaces/projection'; |
@@ -231,4 +231,5 @@ /** | ||
| * @param selectorIndex - 0 means <ng-content> without any selector | ||
| * @param attrs - attributes attached to the ng-content node, if present | ||
| */ | ||
| export declare function projection(nodeIndex: number, localIndex: number, selectorIndex?: number): void; | ||
| export declare function projection(nodeIndex: number, localIndex: number, selectorIndex?: number, attrs?: string[]): void; | ||
| /** | ||
@@ -255,7 +256,9 @@ * Adds a LView or a LContainer to the end of the current view tree. | ||
| * | ||
| * @param values an array of values to diff. | ||
| * `values`: | ||
| * - has static text at even indexes, | ||
| * - has evaluated expressions at odd indexes (could be NO_CHANGE). | ||
| */ | ||
| export declare function bindV(values: any[]): string | NO_CHANGE; | ||
| /** | ||
| * Create a single value binding without interpolation. | ||
| * Creates a single value binding without interpolation. | ||
| * | ||
@@ -266,3 +269,3 @@ * @param value Value to diff | ||
| /** | ||
| * Create an interpolation bindings with 1 arguments. | ||
| * Creates an interpolation bindings with 1 argument. | ||
| * | ||
@@ -274,113 +277,15 @@ * @param prefix static value used for concatenation only. | ||
| export declare function bind1(prefix: string, value: any, suffix: string): string | NO_CHANGE; | ||
| /** | ||
| * Create an interpolation bindings with 2 arguments. | ||
| * | ||
| * @param prefix | ||
| * @param v0 value checked for change | ||
| * @param i0 | ||
| * @param v1 value checked for change | ||
| * @param suffix | ||
| */ | ||
| /** Creates an interpolation bindings with 2 arguments. */ | ||
| export declare function bind2(prefix: string, v0: any, i0: string, v1: any, suffix: string): string | NO_CHANGE; | ||
| /** | ||
| * Create an interpolation bindings with 3 arguments. | ||
| * | ||
| * @param prefix | ||
| * @param v0 | ||
| * @param i0 | ||
| * @param v1 | ||
| * @param i1 | ||
| * @param v2 | ||
| * @param suffix | ||
| */ | ||
| /** Creates an interpolation bindings with 3 arguments. */ | ||
| export declare function bind3(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, suffix: string): string | NO_CHANGE; | ||
| /** | ||
| * Create an interpolation binding with 4 arguments. | ||
| * | ||
| * @param prefix | ||
| * @param v0 | ||
| * @param i0 | ||
| * @param v1 | ||
| * @param i1 | ||
| * @param v2 | ||
| * @param i2 | ||
| * @param v3 | ||
| * @param suffix | ||
| */ | ||
| /** Create an interpolation binding with 4 arguments. */ | ||
| export declare function bind4(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, suffix: string): string | NO_CHANGE; | ||
| /** | ||
| * Create an interpolation binding with 5 arguments. | ||
| * | ||
| * @param prefix | ||
| * @param v0 | ||
| * @param i0 | ||
| * @param v1 | ||
| * @param i1 | ||
| * @param v2 | ||
| * @param i2 | ||
| * @param v3 | ||
| * @param i3 | ||
| * @param v4 | ||
| * @param suffix | ||
| */ | ||
| /** Creates an interpolation binding with 5 arguments. */ | ||
| export declare function bind5(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, suffix: string): string | NO_CHANGE; | ||
| /** | ||
| * Create an interpolation binding with 6 arguments. | ||
| * | ||
| * @param prefix | ||
| * @param v0 | ||
| * @param i0 | ||
| * @param v1 | ||
| * @param i1 | ||
| * @param v2 | ||
| * @param i2 | ||
| * @param v3 | ||
| * @param i3 | ||
| * @param v4 | ||
| * @param i4 | ||
| * @param v5 | ||
| * @param suffix | ||
| */ | ||
| /** Creates an interpolation binding with 6 arguments. */ | ||
| export declare function bind6(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, suffix: string): string | NO_CHANGE; | ||
| /** | ||
| * Create an interpolation binding with 7 arguments. | ||
| * | ||
| * @param prefix | ||
| * @param v0 | ||
| * @param i0 | ||
| * @param v1 | ||
| * @param i1 | ||
| * @param v2 | ||
| * @param i2 | ||
| * @param v3 | ||
| * @param i3 | ||
| * @param v4 | ||
| * @param i4 | ||
| * @param v5 | ||
| * @param i5 | ||
| * @param v6 | ||
| * @param suffix | ||
| */ | ||
| /** Creates an interpolation binding with 7 arguments. */ | ||
| export declare function bind7(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, suffix: string): string | NO_CHANGE; | ||
| /** | ||
| * Create an interpolation binding with 8 arguments. | ||
| * | ||
| * @param prefix | ||
| * @param v0 | ||
| * @param i0 | ||
| * @param v1 | ||
| * @param i1 | ||
| * @param v2 | ||
| * @param i2 | ||
| * @param v3 | ||
| * @param i3 | ||
| * @param v4 | ||
| * @param i4 | ||
| * @param v5 | ||
| * @param i5 | ||
| * @param v6 | ||
| * @param i6 | ||
| * @param v7 | ||
| * @param suffix | ||
| */ | ||
| /** Creates an interpolation binding with 8 arguments. */ | ||
| export declare function bind8(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, i6: string, v7: any, suffix: string): string | NO_CHANGE; | ||
@@ -393,3 +298,4 @@ export declare function memory<T>(index: number, value?: T): T; | ||
| export declare function getRenderer(): Renderer3; | ||
| export declare function getTView(): TView; | ||
| export declare function getDirectiveInstance<T>(instanceOrArray: T | [T]): T; | ||
| export declare function assertPreviousIsParent(): void; |
@@ -8,2 +8,3 @@ /** | ||
| */ | ||
| import { PipeTransform } from '../../change_detection/pipe_transform'; | ||
| import { RendererType2 } from '../../render/api'; | ||
@@ -27,2 +28,5 @@ import { Type } from '../../type'; | ||
| } | ||
| export interface PipeType<T> extends Type<T> { | ||
| ngPipeDef: PipeDef<T>; | ||
| } | ||
| /** | ||
@@ -107,2 +111,22 @@ * `DirectiveDef` is a compiled version of the Directive used by the renderer instructions. | ||
| } | ||
| /** | ||
| * | ||
| */ | ||
| export interface PipeDef<T> { | ||
| /** | ||
| * factory function used to create a new directive instance. | ||
| * | ||
| * NOTE: this property is short (1 char) because it is used in | ||
| * component templates which is sensitive to size. | ||
| */ | ||
| n: () => PipeTransform; | ||
| /** | ||
| * Whether or not the pipe is pure. | ||
| * | ||
| * Pure pipes result only depends on the pipe input and not on internal | ||
| * state of the pipe. | ||
| */ | ||
| pure: boolean; | ||
| onDestroy: (() => void) | null; | ||
| } | ||
| export interface DirectiveDefArgs<T> { | ||
@@ -109,0 +133,0 @@ type: Type<T>; |
@@ -10,4 +10,3 @@ /** | ||
| /** | ||
| * An LProjection is a pointer to the first and the last projected nodes. | ||
| * It is a linked list (using the pNextOrParent property). | ||
| * Linked list of projected nodes (using the pNextOrParent property). | ||
| */ | ||
@@ -14,0 +13,0 @@ export interface LProjection { |
@@ -18,3 +18,3 @@ /** | ||
| * `LView`. When that view is done processing, the `currentView` is set back to | ||
| * whatever the original `currentView` was before(the parent `LView`). | ||
| * whatever the original `currentView` was before (the parent `LView`). | ||
| * | ||
@@ -234,2 +234,4 @@ * Keeping separate state for each view facilities view insertion / deletion, so we | ||
| destroyHooks: HookData | null; | ||
| /** Contains copies of object literals that were passed as bindings in this view. */ | ||
| objectLiterals: any[] | null; | ||
| } | ||
@@ -236,0 +238,0 @@ /** |
@@ -21,1 +21,6 @@ /** | ||
| export declare function isNodeMatchingSelector(tNode: TNode, selector: CssSelector): boolean; | ||
| /** | ||
| * Checks a given node against matching selectors and returns | ||
| * selector index (or 0 if none matched); | ||
| */ | ||
| export declare function matchingSelectorIndex(tNode: TNode, selectors: CssSelector[]): number; |
+1
-1
| /** | ||
| * @license Angular v6.0.0-beta.2 | ||
| * @license Angular v6.0.0-beta.3 | ||
| * (c) 2010-2018 Google, Inc. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
7789471
0.91%151
1.34%75052
1.37%397
-3.87%