_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/forms/src/model/form_control.ts_0_5585
/** * @license * Copyright Google LLC 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.dev/license */ import {ɵWritable as Writable} from '@angular/core'; import {AsyncValidatorFn, ValidatorFn} from '../directives/val...
{ "end_byte": 5585, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/form_control.ts" }
angular/packages/forms/src/model/form_control.ts_5586_13109
port interface FormControl<TValue = any> extends AbstractControl<TValue> { /** * The default value of this FormControl, used whenever the control is reset without an explicit * value. See {@link FormControlOptions#nonNullable} for more information on configuring * a default value. */ readonly defaultVal...
{ "end_byte": 13109, "start_byte": 5586, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/form_control.ts" }
angular/packages/forms/src/model/form_control.ts_13111_18394
rt const FormControl: ɵFormControlCtor = class FormControl<TValue = any> extends AbstractControl<TValue> implements FormControlInterface<TValue> { /** @publicApi */ public readonly defaultValue: TValue = null as unknown as TValue; /** @internal */ _onChange: Array<Function> = []; /** @internal */ _pen...
{ "end_byte": 18394, "start_byte": 13111, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/form_control.ts" }
angular/packages/forms/src/model/form_group.ts_0_5740
/** * @license * Copyright Google LLC 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.dev/license */ import {ɵWritable as Writable} from '@angular/core'; import {AsyncValidatorFn, ValidatorFn} from '../directives/val...
{ "end_byte": 5740, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/form_group.ts" }
angular/packages/forms/src/model/form_group.ts_5741_13534
s FormGroup< TControl extends {[K in keyof TControl]: AbstractControl<any>} = any, > extends AbstractControl< ɵTypedOrUntyped<TControl, ɵFormGroupValue<TControl>, any>, ɵTypedOrUntyped<TControl, ɵFormGroupRawValue<TControl>, any> > { /** * Creates a new `FormGroup` instance. * * @param controls A colle...
{ "end_byte": 13534, "start_byte": 5741, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/form_group.ts" }
angular/packages/forms/src/model/form_group.ts_13538_21315
value of the `FormGroup`. It accepts an object that matches * the structure of the group, with control names as keys. * * @usageNotes * ### Set the complete value for the form group * * ``` * const form = new FormGroup({ * first: new FormControl(), * last: new FormControl() * }); *...
{ "end_byte": 21315, "start_byte": 13538, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/form_group.ts" }
angular/packages/forms/src/model/form_group.ts_21318_28173
: (v: any, k: any) => void): void { Object.keys(this.controls).forEach((key) => { // The list of controls can change (for ex. controls might be removed) while the loop // is running (as a result of invoking Forms API in `valueChanges` subscription), so we // have to null check before invoking the ...
{ "end_byte": 28173, "start_byte": 21318, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/form_group.ts" }
angular/packages/forms/src/model/abstract_model.ts_0_8149
/** * @license * Copyright Google LLC 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.dev/license */ import { EventEmitter, signal, ɵRuntimeError as RuntimeError, ɵWritable as Writable, untracked, computed...
{ "end_byte": 8149, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/abstract_model.ts" }
angular/packages/forms/src/model/abstract_model.ts_8151_14025
* Value gives the value type corresponding to a control type. * * Note that the resulting type will follow the same rules as `.value` on your control, group, or * array, including `undefined` for each group element which might be disabled. * * If you are trying to extract a value type for a data model, you probabl...
{ "end_byte": 14025, "start_byte": 8151, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/abstract_model.ts" }
angular/packages/forms/src/model/abstract_model.ts_14026_22055
stractControl<TValue = any, TRawValue extends TValue = TValue> { /** @internal */ _pendingDirty = false; /** * Indicates that a control has its own pending asynchronous validation in progress. * It also stores if the control should emit events when the validation status changes. * * @internal */ ...
{ "end_byte": 22055, "start_byte": 14026, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/abstract_model.ts" }
angular/packages/forms/src/model/abstract_model.ts_22059_30882
observable that emits an event every time the state of the control changes. * It emits for value, status, pristine or touched changes. * * **Note**: On value change, the emit happens right after a value of this control is updated. The * value of a parent control (for example if this FormControl is a part of...
{ "end_byte": 30882, "start_byte": 22059, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/abstract_model.ts" }
angular/packages/forms/src/model/abstract_model.ts_30886_38850
ol as `touched`. A control is touched by focus and * blur events that do not change the value. * * @see {@link markAsUntouched()} * @see {@link markAsDirty()} * @see {@link markAsPristine()} * * @param opts Configuration options that determine how the control propagates changes * and emits event...
{ "end_byte": 38850, "start_byte": 30886, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/abstract_model.ts" }
angular/packages/forms/src/model/abstract_model.ts_38850_47120
sed to propagate the source control downwards */ markAsPending(opts: { onlySelf?: boolean; emitEvent?: boolean; sourceControl?: AbstractControl; }): void; markAsPending( opts: {onlySelf?: boolean; emitEvent?: boolean; sourceControl?: AbstractControl} = {}, ): void { this.status = PENDING;...
{ "end_byte": 47120, "start_byte": 38850, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/abstract_model.ts" }
angular/packages/forms/src/model/abstract_model.ts_47124_54556
or(shouldHaveEmitted: boolean, emitEvent?: boolean): void { if (this.asyncValidator) { this.status = PENDING; this._hasOwnPendingAsyncValidator = {emitEvent: emitEvent !== false}; const obs = toObservable(this.asyncValidator(this)); this._asyncValidationSubscription = obs.subscribe((errors: ...
{ "end_byte": 54556, "start_byte": 47124, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/abstract_model.ts" }
angular/packages/forms/src/model/abstract_model.ts_54559_59230
emitEvent: boolean, changedControl: AbstractControl, shouldHaveEmitted?: boolean, ): void { this.status = this._calculateStatus(); if (emitEvent) { (this.statusChanges as EventEmitter<FormControlStatus>).emit(this.status); } // The Events Observable expose a slight different bevahior t...
{ "end_byte": 59230, "start_byte": 54559, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/abstract_model.ts" }
angular/packages/forms/src/model/form_array.ts_0_3755
/** * @license * Copyright Google LLC 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.dev/license */ import {ɵWritable as Writable} from '@angular/core'; import {AsyncValidatorFn, ValidatorFn} from '../directives/val...
{ "end_byte": 3755, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/form_array.ts" }
angular/packages/forms/src/model/form_array.ts_3756_11692
ss FormArray<TControl extends AbstractControl<any> = any> extends AbstractControl< ɵTypedOrUntyped<TControl, ɵFormArrayValue<TControl>, any>, ɵTypedOrUntyped<TControl, ɵFormArrayRawValue<TControl>, any> > { /** * Creates a new `FormArray` instance. * * @param controls An array of child controls. Each chi...
{ "end_byte": 11692, "start_byte": 3756, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/form_array.ts" }
angular/packages/forms/src/model/form_array.ts_11695_19621
e( value: ɵFormArrayRawValue<TControl>, options: { onlySelf?: boolean; emitEvent?: boolean; } = {}, ): void { assertAllValuesPresent(this, false, value); value.forEach((newValue: any, index: number) => { assertControlPresent(this, false, index); this.at(index).setValue(newV...
{ "end_byte": 19621, "start_byte": 11695, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/form_array.ts" }
angular/packages/forms/src/model/form_array.ts_19624_20610
string | number): AbstractControl | null { return this.at(name as number) ?? null; } } interface UntypedFormArrayCtor { new ( controls: AbstractControl[], validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null, ...
{ "end_byte": 20610, "start_byte": 19624, "url": "https://github.com/angular/angular/blob/main/packages/forms/src/model/form_array.ts" }
angular/packages/core/PACKAGE.md_0_410
Implements Angular's core functionality, low-level services, and utilities. * Defines the class infrastructure for components, view hierarchies, change detection, rendering, and event handling. * Defines the decorators that supply metadata and context for Angular constructs. * Defines infrastructure for dependency ...
{ "end_byte": 410, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/PACKAGE.md" }
angular/packages/core/BUILD.bazel_0_4761
load("@build_bazel_rules_nodejs//:index.bzl", "generated_file_test") load("//adev/shared-docs/pipeline/api-gen:generate_api_docs.bzl", "generate_api_docs") load("//packages/common/locales:index.bzl", "generate_base_locale_file") load("//tools:defaults.bzl", "api_golden_test", "api_golden_test_npm_package", "ng_module",...
{ "end_byte": 4761, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/BUILD.bazel" }
angular/packages/core/index.ts_0_485
/** * @license * Copyright Google LLC 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.dev/license */ /* This file is not used to build this module. It is only used during editing * by the TypeScript language service ...
{ "end_byte": 485, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/index.ts" }
angular/packages/core/public_api.ts_0_395
/** * @license * Copyright Google LLC 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.dev/license */ /** * @module * @description * Entry point for all public APIs of this package. */ export * from './src/core'; ...
{ "end_byte": 395, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/public_api.ts" }
angular/packages/core/test/error_handler_spec.ts_0_1252
/** * @license * Copyright Google LLC 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.dev/license */ import {ErrorHandler} from '../src/error_handler'; class MockConsole { res: any[][] = []; error(...s: any[]): v...
{ "end_byte": 1252, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/error_handler_spec.ts" }
angular/packages/core/test/transfer_state_spec.ts_0_5294
/** * @license * Copyright Google LLC 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.dev/license */ import {APP_ID as APP_ID_TOKEN, PLATFORM_ID} from '@angular/core'; import {TestBed} from '@angular/core/testing'; i...
{ "end_byte": 5294, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/transfer_state_spec.ts" }
angular/packages/core/test/change_detection_scheduler_spec.ts_0_1634
/** * @license * Copyright Google LLC 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.dev/license */ import {AsyncPipe} from '@angular/common'; import {PLATFORM_BROWSER_ID} from '@angular/common/src/platform_id'; impo...
{ "end_byte": 1634, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection_scheduler_spec.ts" }
angular/packages/core/test/change_detection_scheduler_spec.ts_1636_11443
describe('Angular with zoneless enabled', () => { async function createFixture<T>(type: Type<T>): Promise<ComponentFixture<T>> { const fixture = TestBed.createComponent(type); await fixture.whenStable(); return fixture; } beforeEach(() => { TestBed.configureTestingModule({ providers: [ ...
{ "end_byte": 11443, "start_byte": 1636, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection_scheduler_spec.ts" }
angular/packages/core/test/change_detection_scheduler_spec.ts_11449_20679
it('when attaching view to ApplicationRef', async () => { @Component({ selector: 'dynamic-cmp', template: '{{"binding"}}', standalone: true, }) class DynamicCmp { elementRef = inject(ElementRef); } const environmentInjector = TestBed.inject(EnvironmentInjec...
{ "end_byte": 20679, "start_byte": 11449, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection_scheduler_spec.ts" }
angular/packages/core/test/change_detection_scheduler_spec.ts_20683_22686
it('throws a nice error when notifications prevent exiting the event loop (infinite CD)', async () => { let caughtError: unknown; let previousHandle = (Zone.root as any)._zoneDelegate.handleError; (Zone.root as any)._zoneDelegate.handleError = (zone: ZoneSpec, e: unknown) => { caughtError = e; }; ...
{ "end_byte": 22686, "start_byte": 20683, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection_scheduler_spec.ts" }
angular/packages/core/test/change_detection_scheduler_spec.ts_22688_30746
describe('Angular with scheduler and ZoneJS', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [ {provide: ComponentFixtureAutoDetect, useValue: true}, {provide: PLATFORM_ID, useValue: PLATFORM_BROWSER_ID}, ], }); }); it('requires updates inside Angular z...
{ "end_byte": 30746, "start_byte": 22688, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection_scheduler_spec.ts" }
angular/packages/core/test/runtime_error_spec.ts_0_1948
/** * @license * Copyright Google LLC 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.dev/license */ import {RuntimeError, RuntimeErrorCode} from '../src/errors'; describe('RuntimeError utils', () => { it('should c...
{ "end_byte": 1948, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/runtime_error_spec.ts" }
angular/packages/core/test/test_bed_effect_spec.ts_0_4564
/** * @license * Copyright Google LLC 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.dev/license */ import { ApplicationRef, ChangeDetectionStrategy, Component, effect, inject, Injector, Input, NgZone...
{ "end_byte": 4564, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/test_bed_effect_spec.ts" }
angular/packages/core/test/directive_lifecycle_integration_spec.ts_0_2517
/** * @license * Copyright Google LLC 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.dev/license */ import { AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, Component, Directive, ...
{ "end_byte": 2517, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/directive_lifecycle_integration_spec.ts" }
angular/packages/core/test/application_init_spec.ts_0_7447
/** * @license * Copyright Google LLC 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.dev/license */ import { APP_INITIALIZER, ApplicationInitStatus, Component, inject, InjectionToken, provideAppInitializer...
{ "end_byte": 7447, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/application_init_spec.ts" }
angular/packages/core/test/test_bed_spec.ts_0_5782
/** * @license * Copyright Google LLC 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.dev/license */ import {PLATFORM_BROWSER_ID} from '@angular/common/src/platform_id'; import { APP_INITIALIZER, ChangeDetectorRef...
{ "end_byte": 5782, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/test_bed_spec.ts" }
angular/packages/core/test/test_bed_spec.ts_5784_14659
ed with Standalone types', () => { beforeEach(() => { TestBed.resetTestingModule(); }); it('should override dependencies of standalone components', () => { @Component({ selector: 'dep', standalone: true, template: 'main dep', }) class MainDep {} @Component({ selector:...
{ "end_byte": 14659, "start_byte": 5784, "url": "https://github.com/angular/angular/blob/main/packages/core/test/test_bed_spec.ts" }
angular/packages/core/test/test_bed_spec.ts_14663_18080
overridden providers available in pipes', () => { const TOKEN_A = new InjectionToken('TOKEN_A'); @Pipe({ name: 'testPipe', standalone: true, }) class TestPipe { constructor(@Inject(TOKEN_A) private token: string) {} transform(value: string): string { return `transformed...
{ "end_byte": 18080, "start_byte": 14663, "url": "https://github.com/angular/angular/blob/main/packages/core/test/test_bed_spec.ts" }
angular/packages/core/test/test_bed_spec.ts_18082_26995
ed', () => { beforeEach(() => { TestBed.resetTestingModule(); TestBed.configureTestingModule({imports: [HelloWorldModule]}); }); it('should compile and render a component', () => { const hello = TestBed.createComponent(HelloWorld); hello.detectChanges(); expect(hello.nativeElement).toHaveTex...
{ "end_byte": 26995, "start_byte": 18082, "url": "https://github.com/angular/angular/blob/main/packages/core/test/test_bed_spec.ts" }
angular/packages/core/test/test_bed_spec.ts_26999_36038
providers in an array', () => { TestBed.configureTestingModule({ imports: [HelloWorldModule], providers: [[{provide: NAME, useValue: 'injected World!'}]], }); TestBed.overrideProvider(NAME, {useValue: 'injected World a second time!'}); const hello = TestBed.createComponent(HelloWorld); ...
{ "end_byte": 36038, "start_byte": 26999, "url": "https://github.com/angular/angular/blob/main/packages/core/test/test_bed_spec.ts" }
angular/packages/core/test/test_bed_spec.ts_36042_44588
ides providers in ModuleWithProviders', () => { const TOKEN = new InjectionToken<string[]>('token'); @NgModule() class MyMod { static multi = false; static forRoot() { return { ngModule: MyMod, providers: [{provide: TOKEN, multi: MyMod.multi, useValue: 'forRootValue'...
{ "end_byte": 44588, "start_byte": 36042, "url": "https://github.com/angular/angular/blob/main/packages/core/test/test_bed_spec.ts" }
angular/packages/core/test/test_bed_spec.ts_44592_49175
ble to override the ErrorHandler via an import', () => { class CustomErrorHandler {} @NgModule({providers: [{provide: ErrorHandler, useClass: CustomErrorHandler}]}) class ProvidesErrorHandler {} TestBed.resetTestingModule(); TestBed.configureTestingModule({imports: [ProvidesErrorHandler, HelloWorl...
{ "end_byte": 49175, "start_byte": 44592, "url": "https://github.com/angular/angular/blob/main/packages/core/test/test_bed_spec.ts" }
angular/packages/core/test/test_bed_spec.ts_49179_55774
blocks', () => { /** * Function returns a class that represents AOT-compiled version of the following Component: * * @Component({ * standalone: true, * imports: [...], * selector: '...', * template: '...', * }) * class ComponentClass {} * * This is needed ...
{ "end_byte": 55774, "start_byte": 49179, "url": "https://github.com/angular/angular/blob/main/packages/core/test/test_bed_spec.ts" }
angular/packages/core/test/test_bed_spec.ts_55778_60743
-compiled components', () => { /** * Function returns a class that represents AOT-compiled version of the following Component: * * @Component({ * standalone: true|false, * imports: [...], // for standalone only * selector: 'comp', * templateUrl: './template.ng.html', * ...
{ "end_byte": 60743, "start_byte": 55778, "url": "https://github.com/angular/angular/blob/main/packages/core/test/test_bed_spec.ts" }
angular/packages/core/test/test_bed_spec.ts_60747_70278
ng defs', () => { it('should restore ng defs to their initial states', () => { @Pipe({ name: 'somePipe', pure: true, standalone: false, }) class SomePipe { transform(value: string): string { return `transformed ${value}`; } } @Directiv...
{ "end_byte": 70278, "start_byte": 60747, "url": "https://github.com/angular/angular/blob/main/packages/core/test/test_bed_spec.ts" }
angular/packages/core/test/test_bed_spec.ts_70282_73275
describe('injection flags', () => { it('should be able to optionally inject a token', () => { const TOKEN = new InjectionToken<string>('TOKEN'); expect(TestBed.inject(TOKEN, undefined, {optional: true})).toBeNull(); expect(TestBed.inject(TOKEN, undefined, InjectFlags.Optional)).toBeNull()...
{ "end_byte": 73275, "start_byte": 70282, "url": "https://github.com/angular/angular/blob/main/packages/core/test/test_bed_spec.ts" }
angular/packages/core/test/test_bed_spec.ts_73277_82315
=> { beforeEach(() => { TestBed.resetTestingModule(); }); it('should tear down the test module by default', () => { expect(TestBedImpl.INSTANCE.shouldTearDownTestingModule()).toBe(true); }); it('should be able to configure the teardown behavior', () => { TestBed.configureTestingModule({teardown:...
{ "end_byte": 82315, "start_byte": 73277, "url": "https://github.com/angular/angular/blob/main/packages/core/test/test_bed_spec.ts" }
angular/packages/core/test/test_bed_spec.ts_82317_83404
nProperties`', () => { beforeEach(() => { TestBed.resetTestingModule(); }); it('should not throw based on the default behavior', () => { expect(TestBedImpl.INSTANCE.shouldThrowErrorOnUnknownProperties()).toBe( THROW_ON_UNKNOWN_PROPERTIES_DEFAULT, ); }); it('should not throw if the option i...
{ "end_byte": 83404, "start_byte": 82317, "url": "https://github.com/angular/angular/blob/main/packages/core/test/test_bed_spec.ts" }
angular/packages/core/test/event_emitter_spec.ts_0_5368
/** * @license * Copyright Google LLC 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.dev/license */ import {TestBed} from '@angular/core/testing'; import {filter, tap} from 'rxjs/operators'; import {EventEmitter} fr...
{ "end_byte": 5368, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/event_emitter_spec.ts" }
angular/packages/core/test/defer_fixture_spec.ts_0_769
/** * @license * Copyright Google LLC 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.dev/license */ import {ɵPLATFORM_BROWSER_ID as PLATFORM_BROWSER_ID} from '@angular/common'; import {Component, PLATFORM_ID, ɵPendin...
{ "end_byte": 769, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/defer_fixture_spec.ts" }
angular/packages/core/test/defer_fixture_spec.ts_771_10073
scribe('DeferFixture', () => { it('should start in manual behavior mode', async () => { @Component({ selector: 'defer-comp', standalone: true, imports: [SecondDeferredComp], template: ` <div> @defer (on immediate) { <second-deferred-comp /> } ...
{ "end_byte": 10073, "start_byte": 771, "url": "https://github.com/angular/angular/blob/main/packages/core/test/defer_fixture_spec.ts" }
angular/packages/core/test/defer_fixture_spec.ts_10077_13272
('should throw when rendering a template that does not exist', async () => { @Component({ selector: 'defer-comp', standalone: true, imports: [SecondDeferredComp], template: ` <div> @defer (on immediate) { <second-deferred-comp /> } </div> ...
{ "end_byte": 13272, "start_byte": 10077, "url": "https://github.com/angular/angular/blob/main/packages/core/test/defer_fixture_spec.ts" }
angular/packages/core/test/component_fixture_spec.ts_0_2956
/** * @license * Copyright Google LLC 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.dev/license */ import { ApplicationRef, Component, EnvironmentInjector, ErrorHandler, Injectable, Input, NgZone, cr...
{ "end_byte": 2956, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/component_fixture_spec.ts" }
angular/packages/core/test/component_fixture_spec.ts_2958_13084
describe('ComponentFixture', () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [ AutoDetectComp, AsyncComp, AsyncTimeoutComp, NestedAsyncTimeoutComp, AsyncChangeComp, MyIfComp, SimpleComp, AsyncChildComp, ...
{ "end_byte": 13084, "start_byte": 2958, "url": "https://github.com/angular/angular/blob/main/packages/core/test/component_fixture_spec.ts" }
angular/packages/core/test/component_fixture_spec.ts_13088_18686
describe('No NgZone', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [{provide: ComponentFixtureNoNgZone, useValue: true}], }); }); it('calling autoDetectChanges raises an error', () => { const componentFixture = TestBed.createComponent(SimpleComp); e...
{ "end_byte": 18686, "start_byte": 13088, "url": "https://github.com/angular/angular/blob/main/packages/core/test/component_fixture_spec.ts" }
angular/packages/core/test/application_module_spec.ts_0_2761
/** * @license * Copyright Google LLC 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.dev/license */ import {DEFAULT_CURRENCY_CODE, LOCALE_ID} from '@angular/core'; import {inject} from '@angular/core/testing'; impor...
{ "end_byte": 2761, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/application_module_spec.ts" }
angular/packages/core/test/fake_async_spec.ts_0_3111
/** * @license * Copyright Google LLC 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.dev/license */ import { discardPeriodicTasks, fakeAsync, flush, flushMicrotasks, inject, tick, } from '@angular/core/te...
{ "end_byte": 3111, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/fake_async_spec.ts" }
angular/packages/core/test/fake_async_spec.ts_3115_11067
describe('timers', () => { it('should run queued zero duration timer on zero tick', fakeAsync(() => { let ran = false; setTimeout(() => { ran = true; }, 0); expect(ran).toEqual(false); tick(); expect(ran).toEqual(true); })); it('should run queued timer after su...
{ "end_byte": 11067, "start_byte": 3115, "url": "https://github.com/angular/angular/blob/main/packages/core/test/fake_async_spec.ts" }
angular/packages/core/test/util_spec.ts_0_575
/** * @license * Copyright Google LLC 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.dev/license */ import {stringify} from '../src/util/stringify'; describe('stringify', () => { it('should return string undefined...
{ "end_byte": 575, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/util_spec.ts" }
angular/packages/core/test/dev_mode_spec.ts_0_372
/** * @license * Copyright Google LLC 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.dev/license */ import {isDevMode} from '@angular/core'; describe('dev mode', () => { it('is enabled in our tests by default', ()...
{ "end_byte": 372, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/dev_mode_spec.ts" }
angular/packages/core/test/BUILD.bazel_0_3763
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library") load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test") package(default_visibility = ["//visibility:public"]) circular_dependency_test( name = "circular_deps_test", entry_point = "angular/packages/co...
{ "end_byte": 3763, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/BUILD.bazel" }
angular/packages/core/test/application_ref_spec.ts_0_8167
/** * @license * Copyright Google LLC 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.dev/license */ import {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common'; import {ResourceLoader} from '@angular/compiler'; impor...
{ "end_byte": 8167, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/application_ref_spec.ts" }
angular/packages/core/test/application_ref_spec.ts_8171_14428
escribe('destroy', () => { const providers = [ {provide: DOCUMENT, useFactory: () => document, deps: []}, // Use the `DomRendererFactory2` as a renderer factory instead of the // `AnimationRendererFactory` one, which is configured as a part of the `ServerModule`, see // platform module setup...
{ "end_byte": 14428, "start_byte": 8171, "url": "https://github.com/angular/angular/blob/main/packages/core/test/application_ref_spec.ts" }
angular/packages/core/test/application_ref_spec.ts_14432_23252
escribe('bootstrapModule', () => { let defaultPlatform: PlatformRef; beforeEach(inject([PlatformRef], (_platform: PlatformRef) => { createRootEl(); defaultPlatform = _platform; })); it('should wait for asynchronous app initializers', waitForAsync(async () => { let resolve: (result: an...
{ "end_byte": 23252, "start_byte": 14432, "url": "https://github.com/angular/angular/blob/main/packages/core/test/application_ref_spec.ts" }
angular/packages/core/test/application_ref_spec.ts_23256_27472
escribe('attachView / detachView', () => { @Component({ template: '{{name}}', standalone: false, }) class MyComp { name = 'Initial'; } @Component({ template: '<ng-container #vc></ng-container>', standalone: false, }) class ContainerComp { @ViewChild('vc',...
{ "end_byte": 27472, "start_byte": 23256, "url": "https://github.com/angular/angular/blob/main/packages/core/test/application_ref_spec.ts" }
angular/packages/core/test/application_ref_spec.ts_27474_33186
escribe('AppRef', () => { @Component({ selector: 'sync-comp', template: `<span>{{text}}</span>`, standalone: false, }) class SyncComp { text: string = '1'; } @Component({ selector: 'click-comp', template: `<span (click)="onClick()">{{text}}</span>`, standalone: false, }) class...
{ "end_byte": 33186, "start_byte": 27474, "url": "https://github.com/angular/angular/blob/main/packages/core/test/application_ref_spec.ts" }
angular/packages/core/test/application_config_spec.ts_0_1705
/** * @license * Copyright Google LLC 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.dev/license */ import {ApplicationConfig, InjectionToken, mergeApplicationConfig} from '@angular/core'; describe('ApplicationConfig...
{ "end_byte": 1705, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/application_config_spec.ts" }
angular/packages/core/test/forward_ref_integration_spec.ts_0_1957
/** * @license * Copyright Google LLC 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.dev/license */ import {CommonModule} from '@angular/common'; import { asNativeElements, Component, ContentChildren, Directi...
{ "end_byte": 1957, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/forward_ref_integration_spec.ts" }
angular/packages/core/test/application_ref_integration_spec.ts_0_2825
/** * @license * Copyright Google LLC 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.dev/license */ import {DOCUMENT} from '@angular/common'; import { ApplicationRef, Component, DoCheck, NgModule, OnInit, ...
{ "end_byte": 2825, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/application_ref_integration_spec.ts" }
angular/packages/core/test/di/r3_injector_spec.ts_0_495
/** * @license * Copyright Google LLC 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.dev/license */ import { InjectFlags, InjectionToken, INJECTOR, Injector, Optional, ɵɵdefineInjectable, ɵɵdefineInject...
{ "end_byte": 495, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/di/r3_injector_spec.ts" }
angular/packages/core/test/di/r3_injector_spec.ts_497_8625
be('InjectorDef-based createInjector()', () => { class CircularA { static ɵprov = ɵɵdefineInjectable({ token: CircularA, providedIn: null, factory: () => ɵɵinject(CircularB), }); } class CircularB { static ɵprov = ɵɵdefineInjectable({ token: CircularB, providedIn: null, ...
{ "end_byte": 8625, "start_byte": 497, "url": "https://github.com/angular/angular/blob/main/packages/core/test/di/r3_injector_spec.ts" }
angular/packages/core/test/di/r3_injector_spec.ts_8629_14687
erviceTwo]); expect(() => injector.get(ServiceTwo)).toThrowError( `R3InjectorError[ServiceTwo]: \n` + ` NullInjectorError: No provider for ServiceTwo!`, ); }); it('should throw with the full path when no provider', () => { const injector = createInjector(ModuleWithMissingDep); expect(() => i...
{ "end_byte": 14687, "start_byte": 8629, "url": "https://github.com/angular/angular/blob/main/packages/core/test/di/r3_injector_spec.ts" }
angular/packages/core/test/di/injector_spec.ts_0_814
/** * @license * Copyright Google LLC 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.dev/license */ import {Injector} from '@angular/core'; describe('Injector.NULL', () => { it('should throw if no arg is given', (...
{ "end_byte": 814, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/di/injector_spec.ts" }
angular/packages/core/test/di/inject_flags_spec.ts_0_777
/** * @license * Copyright Google LLC 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.dev/license */ import {InjectFlags, InternalInjectFlags} from '../../src/di/interface/injector'; describe('InjectFlags', () => { ...
{ "end_byte": 777, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/di/inject_flags_spec.ts" }
angular/packages/core/test/di/forward_ref_spec.ts_0_538
/** * @license * Copyright Google LLC 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.dev/license */ import {Type} from '@angular/core'; import {forwardRef, resolveForwardRef} from '@angular/core/src/di'; describe('f...
{ "end_byte": 538, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/di/forward_ref_spec.ts" }
angular/packages/core/test/di/static_injector_spec.ts_0_7224
/** * @license * Copyright Google LLC 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.dev/license */ import {forwardRef, Inject, InjectFlags, Injector, Self, SkipSelf} from '@angular/core'; import {stringify} from '....
{ "end_byte": 7224, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/di/static_injector_spec.ts" }
angular/packages/core/test/change_detection/util.ts_0_4109
/** * @license * Copyright Google LLC 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.dev/license */ import { IterableChangeRecord, IterableChanges, } from '@angular/core/src/change_detection/differs/iterable_diff...
{ "end_byte": 4109, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection/util.ts" }
angular/packages/core/test/change_detection/differs/keyvalue_differs_spec.ts_0_1196
/** * @license * Copyright Google LLC 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.dev/license */ import {KeyValueDiffer, KeyValueDifferFactory, KeyValueDiffers, NgModule} from '@angular/core'; import {TestBed} fro...
{ "end_byte": 1196, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection/differs/keyvalue_differs_spec.ts" }
angular/packages/core/test/change_detection/differs/iterable_differs_spec.ts_0_3372
/** * @license * Copyright Google LLC 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.dev/license */ import { Injector, IterableDiffer, IterableDifferFactory, IterableDiffers, NgModule, TrackByFunction, } ...
{ "end_byte": 3372, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection/differs/iterable_differs_spec.ts" }
angular/packages/core/test/change_detection/differs/default_iterable_differ_spec.ts_0_819
/** * @license * Copyright Google LLC 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.dev/license */ import { DefaultIterableDiffer, DefaultIterableDifferFactory, } from '@angular/core/src/change_detection/differs...
{ "end_byte": 819, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection/differs/default_iterable_differ_spec.ts" }
angular/packages/core/test/change_detection/differs/default_iterable_differ_spec.ts_820_7755
describe('iterable differ', function () { describe('DefaultIterableDiffer', function () { let differ: DefaultIterableDiffer<any>; beforeEach(() => { differ = new DefaultIterableDiffer(); }); it('should support list and iterables', () => { const f = new DefaultIterableDifferFactory(); ...
{ "end_byte": 7755, "start_byte": 820, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection/differs/default_iterable_differ_spec.ts" }
angular/packages/core/test/change_detection/differs/default_iterable_differ_spec.ts_7761_9885
it('should support duplicates', () => { const l = ['a', 'a', 'a', 'b', 'b']; differ.check(l); l.splice(0, 1); differ.check(l); expect(iterableDifferToString(differ)).toEqual( iterableChangesAsString({ collection: ['a', 'a', 'b[3->2]', 'b[4->3]'], previous: ['a'...
{ "end_byte": 9885, "start_byte": 7761, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection/differs/default_iterable_differ_spec.ts" }
angular/packages/core/test/change_detection/differs/default_iterable_differ_spec.ts_9891_16366
describe('forEachOperation', () => { function stringifyItemChange( record: any, p: number | null, c: number | null, originalIndex: number, ) { const suffix = originalIndex == null ? '' : ' [o=' + originalIndex + ']'; const value = record.item; if (reco...
{ "end_byte": 16366, "start_byte": 9891, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection/differs/default_iterable_differ_spec.ts" }
angular/packages/core/test/change_detection/differs/default_iterable_differ_spec.ts_16372_22894
describe('diff', () => { it('should return self when there is a change', () => { expect(differ.diff(['a', 'b'])).toBe(differ); }); it('should return null when there is no change', () => { differ.diff(['a', 'b']); expect(differ.diff(['a', 'b'])).toEqual(null); }); ...
{ "end_byte": 22894, "start_byte": 16372, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection/differs/default_iterable_differ_spec.ts" }
angular/packages/core/test/change_detection/differs/default_iterable_differ_spec.ts_22898_23614
describe('trackBy function by index', function () { let differ: DefaultIterableDiffer<string>; const trackByIndex = (index: number, item: any): number => index; beforeEach(() => { differ = new DefaultIterableDiffer(trackByIndex); }); it('should track removals normally', () => { differ...
{ "end_byte": 23614, "start_byte": 22898, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection/differs/default_iterable_differ_spec.ts" }
angular/packages/core/test/change_detection/differs/default_keyvalue_differ_spec.ts_0_471
/** * @license * Copyright Google LLC 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.dev/license */ import { DefaultKeyValueDiffer, DefaultKeyValueDifferFactory, } from '@angular/core/src/change_detection/differs...
{ "end_byte": 471, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection/differs/default_keyvalue_differ_spec.ts" }
angular/packages/core/test/change_detection/differs/default_keyvalue_differ_spec.ts_472_7924
describe('keyvalue differ', function () { describe('DefaultKeyValueDiffer', function () { let differ: DefaultKeyValueDiffer<any, any>; let m: Map<any, any>; beforeEach(() => { differ = new DefaultKeyValueDiffer<string, any>(); m = new Map(); }); afterEach(() => { differ = null!...
{ "end_byte": 7924, "start_byte": 472, "url": "https://github.com/angular/angular/blob/main/packages/core/test/change_detection/differs/default_keyvalue_differ_spec.ts" }
angular/packages/core/test/hydration/compression_spec.ts_0_1686
/** * @license * Copyright Google LLC 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.dev/license */ import {compressNodeLocation, decompressNodeLocation} from '../../src/hydration/compression'; import { NodeNavigat...
{ "end_byte": 1686, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/hydration/compression_spec.ts" }
angular/packages/core/test/playground/zone-signal-input/index.html_0_407
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Test App</title> </head> <body> <my-app /> </body> <script src="/angular/packages/zone.js...
{ "end_byte": 407, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/playground/zone-signal-input/index.html" }
angular/packages/core/test/playground/zone-signal-input/BUILD.bazel_0_660
load("//tools:defaults.bzl", "app_bundle", "http_server", "ng_module") ng_module( name = "test_lib", srcs = ["index.ts"], strict_templates = True, tags = ["no-cache"], deps = [ "//packages/core", "//packages/platform-browser", "//packages/zone.js/lib", ], ) filegroup( ...
{ "end_byte": 660, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/playground/zone-signal-input/BUILD.bazel" }
angular/packages/core/test/playground/zone-signal-input/index.ts_0_1986
/** * @license * Copyright Google LLC 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.dev/license */ import {Component, EventEmitter, Input, input, Output, signal} from '@angular/core'; import {bootstrapApplication} f...
{ "end_byte": 1986, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/playground/zone-signal-input/index.ts" }
angular/packages/core/test/util/array_utils_spec.ts_0_4909
/** * @license * Copyright Google LLC 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.dev/license */ import { arrayIndexOfSorted, arrayInsert, arrayInsert2, arraySplice, flatten, KeyValueArray, keyValueA...
{ "end_byte": 4909, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/util/array_utils_spec.ts" }
angular/packages/core/test/util/coercion_spec.ts_0_4288
/** * @license * Copyright Google LLC 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.dev/license */ import {booleanAttribute, numberAttribute} from '@angular/core'; describe('coercion functions', () => { describe('...
{ "end_byte": 4288, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/util/coercion_spec.ts" }
angular/packages/core/test/util/dom_spec.ts_0_1890
/** * @license * Copyright Google LLC 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.dev/license */ import {escapeCommentText} from '@angular/core/src/util/dom'; describe('comment node text escaping', () => { desc...
{ "end_byte": 1890, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/util/dom_spec.ts" }
angular/packages/core/test/util/stringify_spec.ts_0_965
/** * @license * Copyright Google LLC 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.dev/license */ import {concatStringsWithSpace} from '@angular/core/src/util/stringify'; describe('stringify', () => { describe('c...
{ "end_byte": 965, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/util/stringify_spec.ts" }
angular/packages/core/test/util/global_spec.ts_0_572
/** * @license * Copyright Google LLC 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.dev/license */ import {global} from '../../src/util/global'; describe('global', () => { it('should be global this value', () => ...
{ "end_byte": 572, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/util/global_spec.ts" }
angular/packages/core/test/util/comparison.ts_0_1965
/** * @license * Copyright Google LLC 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.dev/license */ import {devModeEqual} from '@angular/core/src/util/comparison'; describe('Comparison util', () => { describe('dev...
{ "end_byte": 1965, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/util/comparison.ts" }
angular/packages/core/test/util/iterable.ts_0_364
/** * @license * Copyright Google LLC 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.dev/license */ export class TestIterable { list: number[]; constructor() { this.list = []; } [Symbol.iterator]() { ...
{ "end_byte": 364, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/util/iterable.ts" }
angular/packages/core/test/util/lang_spec.ts_0_1013
/** * @license * Copyright Google LLC 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.dev/license */ import {isSubscribable} from '@angular/core/src/util/lang'; import {of} from 'rxjs'; describe('isSubscribable', () =...
{ "end_byte": 1013, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/util/lang_spec.ts" }
angular/packages/core/test/util/decorators_spec.ts_0_2412
/** * @license * Copyright Google LLC 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.dev/license */ import {getReflect} from '../../src/di/jit/util'; import {ANNOTATIONS, makeDecorator, makePropDecorator} from '../.....
{ "end_byte": 2412, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/util/decorators_spec.ts" }
angular/packages/core/test/linker/integration_spec.ts_0_1791
/** * @license * Copyright Google LLC 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.dev/license */ import {CommonModule, DOCUMENT, ɵgetDOM as getDOM} from '@angular/common'; import { Attribute, Compiler, Compo...
{ "end_byte": 1791, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/integration_spec.ts" }