_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/devtools/src/app/demo-app/todo/home/todo.component.scss_0_61
.destroy { cursor: pointer; display: unset !important; }
{ "end_byte": 61, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/devtools/src/app/demo-app/todo/home/todo.component.scss" }
angular/devtools/src/app/demo-app/todo/home/todos.component.ts_0_2724
/** * @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 {ChangeDetectorRef, Component, EventEmitter, OnDestroy, OnInit, Output} from '@angular/core'; import {Todo} ...
{ "end_byte": 2724, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/devtools/src/app/demo-app/todo/home/todos.component.ts" }
angular/devtools/src/app/demo-app/todo/home/todos.service.ts_0_622
/** * @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 {Todo} from './todo'; export abstract class TodosService { getAll(): Promise<Todo[]> { throw new Error...
{ "end_byte": 622, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/devtools/src/app/demo-app/todo/home/todos.service.ts" }
angular/devtools/src/app/demo-app/todo/home/todo.component.html_0_525
<li [class.completed]="todo.completed"> <div class="view" appTooltip> <input class="toggle" type="checkbox" [checked]="todo.completed" (change)="toggle()" /> <label (dblclick)="enableEditMode()" [style.display]="editMode ? 'none' : 'block'">{{ todo.label }}</label> <button class="destroy" (click)="delete....
{ "end_byte": 525, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/devtools/src/app/demo-app/todo/home/todo.component.html" }
angular/devtools/src/app/demo-app/todo/about/about.module.ts_0_585
/** * @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 {NgModule} from '@angular/core'; import {RouterModule} from '@angular/router'; import {AboutComponent} from ...
{ "end_byte": 585, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/devtools/src/app/demo-app/todo/about/about.module.ts" }
angular/devtools/src/app/demo-app/todo/about/about.component.ts_0_542
/** * @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} from '@angular/core'; import {RouterLink} from '@angular/router'; @Component({ selector: 'app-...
{ "end_byte": 542, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/devtools/src/app/demo-app/todo/about/about.component.ts" }
angular/devtools/src/app/demo-app/todo/about/BUILD.bazel_0_294
load("//devtools/tools:ng_module.bzl", "ng_module") package(default_visibility = ["//visibility:public"]) ng_module( name = "about", srcs = [ "about.component.ts", "about.module.ts", ], deps = [ "//packages/core", "//packages/router", ], )
{ "end_byte": 294, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/devtools/src/app/demo-app/todo/about/BUILD.bazel" }
angular/devtools/src/environments/environment.ts_0_257
/** * @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 const environment = { production: false, };
{ "end_byte": 257, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/devtools/src/environments/environment.ts" }
angular/devtools/src/environments/BUILD.bazel_0_256
load("//devtools/tools:typescript.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "environments", srcs = [ "environment.ts", ], deps = [ "//packages/platform-browser", ], )
{ "end_byte": 256, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/devtools/src/environments/BUILD.bazel" }
angular/devtools/src/styles/chrome_styles.scss_0_42
/** Specific style for Chrome browser */
{ "end_byte": 42, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/devtools/src/styles/chrome_styles.scss" }
angular/devtools/src/styles/firefox_styles.scss_0_43
/** Specific style for Firefox browser */
{ "end_byte": 43, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/devtools/src/styles/firefox_styles.scss" }
angular/scripts/compare-main-to-patch.js_0_6454
#!/usr/bin/env node /** * @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 */ 'use strict'; /** * This script compares commits in main and patch branches to find the delta...
{ "end_byte": 6454, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/compare-main-to-patch.js" }
angular/scripts/test/run-saucelabs-tests.sh_0_2296
#!/usr/bin/env bash # Convienence script for running all saucelabs test targets. # See tools/saucelabs-daemon/README.md for more information. set -eu -o pipefail NUMBER_OF_PARALLEL_BROWSERS="${1:-2}" shift if [[ -z "${SAUCE_USERNAME:-}" ]]; then echo "ERROR: SAUCE_USERNAME environment variable must be set; see to...
{ "end_byte": 2296, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/test/run-saucelabs-tests.sh" }
angular/scripts/ci/payload-size.js_0_3589
/** * @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 */ 'use strict'; // Imports const fs = require('fs'); const path = require('path'); // Get limit file, project name a...
{ "end_byte": 3589, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/ci/payload-size.js" }
angular/scripts/ci/bazel-payload-size.sh_0_844
#!/usr/bin/env bash set -eu -o pipefail # Source optional CI environment variables which are sandboxed out # of the environment when running integration tests under Bazel readonly bazelVarEnv="/tmp/bazel-ci-env.sh" if [[ -f "$bazelVarEnv" ]]; then source $bazelVarEnv fi # If running locally, at a minimum set PROJE...
{ "end_byte": 844, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/ci/bazel-payload-size.sh" }
angular/scripts/ci/payload-size.sh_0_4730
#!/usr/bin/env bash set -eu -o pipefail # statc makes `stat -c` work on both Linux & OSX function statc () { case $(uname) in Darwin*) format='-f%z' ;; *) format='-c%s' ;; esac stat ${format} $@ } # sedr makes `sed -r` work on both Linux & OSX function sedr () { case $(uname) in Darwin*) flag='-...
{ "end_byte": 4730, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/ci/payload-size.sh" }
angular/scripts/ci/publish-build-artifacts.sh_0_4503
#!/usr/bin/env bash set -x -u -e -o pipefail # Setup environment readonly thisDir=$(cd $(dirname $0); pwd) # Find the most recent tag that is reachable from the current commit. # This is shallow clone of the repo, so we might need to fetch more commits to # find the tag. function getLatestTag { local depth=`git lo...
{ "end_byte": 4503, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/ci/publish-build-artifacts.sh" }
angular/scripts/ci/create-package-archives.sh_0_1502
#!/usr/bin/env bash set -eu -o pipefail readonly safeBranchName="$(echo $1 | sed 's/^pull\//pr/' | sed 's/[^A-Za-z0-9_.-]/_/g')" readonly shortLastSha="$(git rev-parse --short $2)" readonly inputDir="$PROJECT_ROOT/$3" readonly outputDir="$PROJECT_ROOT/$4" readonly fileSuffix="-$safeBranchName-$shortLastSha.tgz" echo...
{ "end_byte": 1502, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/ci/create-package-archives.sh" }
angular/scripts/benchmarks/results.mts_0_2382
/** * @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 path from 'path'; import Zip from 'adm-zip'; import type {JsonReport} from '../../packages/benchpress/src/re...
{ "end_byte": 2382, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/benchmarks/results.mts" }
angular/scripts/benchmarks/targets.mts_0_1724
/** * @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 path from 'path'; import {exec} from './utils.mjs'; /** Branded string representing a resolved Bazel benchma...
{ "end_byte": 1724, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/benchmarks/targets.mts" }
angular/scripts/benchmarks/index.mts_0_7333
/** * @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 {setOutput} from '@actions/core'; import {GitClient, Log, bold, green, yellow} from '@angular/ng-dev'; import...
{ "end_byte": 7333, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/benchmarks/index.mts" }
angular/scripts/benchmarks/README.md_0_483
## Benchmarks script This folder contains a convenience script for running benchmarks and performing comparisons. It can be run via `yarn benchmarks`. See command line help for possible commands. The benchmark script is used in conjunction with the benchmark compare GitHub actions workflow, allowing organization memb...
{ "end_byte": 483, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/benchmarks/README.md" }
angular/scripts/benchmarks/utils.mts_0_1466
/** * @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 {Log} from '@angular/ng-dev'; import childProcess from 'child_process'; import path from 'path'; import url f...
{ "end_byte": 1466, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/benchmarks/utils.mts" }
angular/scripts/build/zone-js-builder.mts_0_2293
/** * @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 {join} from 'path'; import sh from 'shelljs'; import {projectDir, bazelCmd, exec} from './package-builder.mj...
{ "end_byte": 2293, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/build/zone-js-builder.mts" }
angular/scripts/build/angular-in-memory-web-api.mts_0_1974
/** * @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 {join} from 'path'; import sh from 'shelljs'; import {projectDir, bazelCmd, exec} from './package-builder.mj...
{ "end_byte": 1974, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/build/angular-in-memory-web-api.mts" }
angular/scripts/build/package-builder.mts_0_5384
/** * @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 {execSync} from 'child_process'; import {join, dirname} from 'path'; import {BuiltPackage} from '@angular/ng-...
{ "end_byte": 5384, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/build/package-builder.mts" }
angular/scripts/build/build-packages-dist.mts_0_928
#!/usr/bin/env node /** * @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 {buildAngularInMemoryWebApiPackage} from './angular-in-memory-web-api.mjs'; import {perf...
{ "end_byte": 928, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/scripts/build/build-packages-dist.mts" }
angular/packages/types.d.ts_0_864
/** * @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 contains all ambient imports needed to compile the packages/ source code /// <reference types="hammerj...
{ "end_byte": 864, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/types.d.ts" }
angular/packages/license-banner.txt_0_112
/** * @license Angular v0.0.0-PLACEHOLDER * (c) 2010-2024 Google LLC. https://angular.io/ * License: MIT */
{ "end_byte": 112, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/license-banner.txt" }
angular/packages/README.md_0_296
Angular ======= The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo. Usage information and reference details can be found in [Angular documentation](https://angular.dev/overview). License: MIT
{ "end_byte": 296, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/README.md" }
angular/packages/circular-deps-test.conf.js_0_898
/** * @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 */ const path = require('path'); module.exports = { baseDir: '../', goldenFile: '../goldens/circular-deps/packages...
{ "end_byte": 898, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/circular-deps-test.conf.js" }
angular/packages/empty.ts_0_389
/** * @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 intentionally left blank. It is used to load nothing in some cases. // Such as parse5/index is redirect...
{ "end_byte": 389, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/empty.ts" }
angular/packages/goog.d.ts_0_660
/** * @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 */ /** * Typings for google closure. */ declare namespace goog { /** * Note: Don't use this to check for advanc...
{ "end_byte": 660, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/goog.d.ts" }
angular/packages/BUILD.bazel_0_4400
load("//tools:defaults.bzl", "ts_config", "ts_library") load("//:packages.bzl", "DOCS_ENTRYPOINTS") load("//adev/shared-docs/pipeline/api-gen/manifest:generate_api_manifest.bzl", "generate_api_manifest") package(default_visibility = ["//visibility:public"]) exports_files([ "tsconfig-build.json", "tsconfig.jso...
{ "end_byte": 4400, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/BUILD.bazel" }
angular/packages/system.d.ts_0_264
/** * @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 */ /** Dummy typings for systemjs. */ declare var System: any;
{ "end_byte": 264, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/system.d.ts" }
angular/packages/compiler-cli/esbuild.config.js_0_597
/** * @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.exports = { resolveExtensions: ['.mjs', '.js'], // Note: `@bazel/esbuild` has a bug and does not pass-thr...
{ "end_byte": 597, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/esbuild.config.js" }
angular/packages/compiler-cli/BUILD.bazel_0_4893
load("@npm//@bazel/esbuild:index.bzl", "esbuild", "esbuild_config") load("//packages/bazel/src:ng_perf.bzl", "ng_perf_flag") load("//tools:defaults.bzl", "api_golden_test", "extract_types", "pkg_npm", "ts_config", "ts_library") package(default_visibility = ["//visibility:public"]) PUBLIC_TARGETS = [ ":compiler-cl...
{ "end_byte": 4893, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/BUILD.bazel" }
angular/packages/compiler-cli/index.ts_0_1924
/** * @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 {NodeJSFileSystem, setFileSystem} from './src/ngtsc/file_system'; export {VERSION} from './src/version'; exp...
{ "end_byte": 1924, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/index.ts" }
angular/packages/compiler-cli/ngcc/BUILD.bazel_0_257
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "ngcc", srcs = ["index.ts"], tsconfig = "//packages/compiler-cli:tsconfig", deps = [ "@npm//@types/node", ], )
{ "end_byte": 257, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/ngcc/BUILD.bazel" }
angular/packages/compiler-cli/ngcc/index.ts_0_1958
#!/usr/bin/env node /** * @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 */ // https://github.com/chalk/chalk/blob/a370f468a43999e4397094ff5c3d17aadcc4860e/source/utilities...
{ "end_byte": 1958, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/ngcc/index.ts" }
angular/packages/compiler-cli/test/mocks.ts_0_4377
/** * @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 ts from 'typescript'; export type Entry = string | Directory; export interface Directory { [name: string]...
{ "end_byte": 4377, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/mocks.ts" }
angular/packages/compiler-cli/test/version_helpers_spec.ts_0_2324
/** * @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 {compareNumbers, compareVersions, isVersionBetween, toNumbers} from '../src/version_helpers'; describe('toNu...
{ "end_byte": 2324, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/version_helpers_spec.ts" }
angular/packages/compiler-cli/test/typescript_support_spec.ts_0_2068
/** * @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 {checkVersion} from '../src/typescript_support'; describe('checkVersion', () => { const MIN_TS_VERSION = '2...
{ "end_byte": 2068, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/typescript_support_spec.ts" }
angular/packages/compiler-cli/test/perform_watch_spec.ts_0_473
/** * @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 * as fs from 'fs'; import * as path from 'path'; import ts from 'typescript'; import * as ng from '../index'...
{ "end_byte": 473, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/perform_watch_spec.ts" }
angular/packages/compiler-cli/test/perform_watch_spec.ts_475_8603
describe('perform watch', () => { let testSupport: TestSupport; let outDir: string; beforeEach(() => { testSupport = setup(); outDir = path.resolve(testSupport.basePath, 'outDir'); }); function createConfig(overrideOptions: ng.CompilerOptions = {}): ng.ParsedConfiguration { const options = testS...
{ "end_byte": 8603, "start_byte": 475, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/perform_watch_spec.ts" }
angular/packages/compiler-cli/test/perform_watch_spec.ts_8605_10634
function createModuleAndCompSource(prefix: string, template: string = prefix + 'template') { const templateEntry = template.endsWith('.html') ? `templateUrl: '${template}'` : `template: \`${template}\``; return ` import {Component, NgModule} from '@angular/core'; @Component({selector: '${prefix}', ...
{ "end_byte": 10634, "start_byte": 8605, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/perform_watch_spec.ts" }
angular/packages/compiler-cli/test/perform_compile_spec.ts_0_8422
/** * @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 * as path from 'path'; import ts from 'typescript'; import {readConfiguration} from '../src/perform_compile'...
{ "end_byte": 8422, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/perform_compile_spec.ts" }
angular/packages/compiler-cli/test/BUILD.bazel_0_2995
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") # Uses separate test rules to allow the tests to run in parallel ts_library( name = "test_utils", testonly = True, srcs = [ "mocks.ts", "test_support.ts", ], visibility = [ ":__subpackages__", "//packag...
{ "end_byte": 2995, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/BUILD.bazel" }
angular/packages/compiler-cli/test/extract_i18n_spec.ts_0_6035
/** * @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 * as fs from 'fs'; import * as path from 'path'; import {mainXi18n} from '../src/extract_i18n'; import {set...
{ "end_byte": 6035, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/extract_i18n_spec.ts" }
angular/packages/compiler-cli/test/extract_i18n_spec.ts_6037_8226
const EXPECTED_XLIFF2 = `<?xml version="1.0" encoding="UTF-8" ?> <xliff version="2.0" xmlns="urn:oasis:names:tc:xliff:document:2.0" srcLang="en"> <file original="ng.template" id="ngi18n"> <unit id="8136548302122759730"> <notes> <note category="description">desc</note> <note category="meaning...
{ "end_byte": 8226, "start_byte": 6037, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/extract_i18n_spec.ts" }
angular/packages/compiler-cli/test/extract_i18n_spec.ts_8228_14014
describe('extract_i18n command line', () => { let basePath: string; let outDir: string; let write: (fileName: string, content: string) => void; let errorSpy: jasmine.Spy & ((s: string) => void); function writeConfig(tsconfig = '{"extends": "./tsconfig-base.json"}') { write('tsconfig.json', tsconfig); }...
{ "end_byte": 14014, "start_byte": 8228, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/extract_i18n_spec.ts" }
angular/packages/compiler-cli/test/test_support.ts_0_6173
/** * @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 */ /// <reference types="node" /> import * as fs from 'fs'; import * as path from 'path'; import ts from 'typescript'; ...
{ "end_byte": 6173, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/test_support.ts" }
angular/packages/compiler-cli/test/compliance/README.md_0_8740
# Compliance test-cases This directory contains rules, helpers and test-cases for the Angular compiler compliance tests. There are three different types of tests that are run based on file-based "test-cases". * **Full compile** - in this test the source files defined by the test-case are fully compiled by Angular. ...
{ "end_byte": 8740, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/README.md" }
angular/packages/compiler-cli/test/compliance/README.md_8740_10073
Debugging test-cases The full and linked compliance tests are basically `jasmine_node_test` rules. As such, they can be debugged just like any other `jasmine_node_test`. The standard approach is to add `--config=debug` to the Bazel test command. For example: ```sg yarn test //packages/compiler-cli/test/compliance/...
{ "end_byte": 10073, "start_byte": 8740, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/README.md" }
angular/packages/compiler-cli/test/compliance/update_all_goldens.js_0_1300
#!/usr/bin/env node /** * @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 */ // tslint:disable:no-console import shelljs from 'shelljs'; const {exec} = shelljs; process.st...
{ "end_byte": 1300, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/update_all_goldens.js" }
angular/packages/compiler-cli/test/compliance/full/BUILD.bazel_0_578
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = ["full_compile_spec.ts"], deps = [ "//packages/compiler-cli/src/ngtsc/file_system", "//packages/compiler-cli/test/compliance/test_helpers", ], ) jasmine_node_test(...
{ "end_byte": 578, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/full/BUILD.bazel" }
angular/packages/compiler-cli/test/compliance/full/full_compile_spec.ts_0_885
/** * @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 {FileSystem} from '../../../src/ngtsc/file_system'; import {CompileResult, compileTest} from '../test_helpers/...
{ "end_byte": 885, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/full/full_compile_spec.ts" }
angular/packages/compiler-cli/test/compliance/partial/partial_compliance_goldens.bzl_0_1993
load("@build_bazel_rules_nodejs//:index.bzl", "generated_file_test") load("//tools:defaults.bzl", "nodejs_binary", "npm_package_bin") def partial_compliance_golden(filePath): """Creates the generate and testing targets for partial compile results. """ # Remove the "TEST_CASES.json" substring from the end ...
{ "end_byte": 1993, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/partial/partial_compliance_goldens.bzl" }
angular/packages/compiler-cli/test/compliance/partial/cli.ts_0_380
/** * @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 {fs} from '../test_helpers/get_compliance_tests'; import {generateGoldenPartial} from './generate_golden_par...
{ "end_byte": 380, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/partial/cli.ts" }
angular/packages/compiler-cli/test/compliance/partial/BUILD.bazel_0_450
load("//tools:defaults.bzl", "ts_library") ts_library( name = "generate_golden_partial_lib", testonly = True, srcs = [ "cli.ts", "generate_golden_partial.ts", ], visibility = ["//packages/compiler-cli/test/compliance:__subpackages__"], deps = [ "//packages/compiler-cli/s...
{ "end_byte": 450, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/partial/BUILD.bazel" }
angular/packages/compiler-cli/test/compliance/partial/generate_golden_partial.ts_0_2380
/** * @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 {AbsoluteFsPath, FileSystem} from '../../../src/ngtsc/file_system'; import { compileTest, getBuildOutputDi...
{ "end_byte": 2380, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/partial/generate_golden_partial.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/replace.sh_0_2737
#!/bin/bash # Step 1: Find all .pipeline.js files recursively find . -type f -name "*.pipeline.js" | while read -r pipeline_file; do base_dir=$(dirname "$pipeline_file") base_name=$(basename "$pipeline_file" .pipeline.js) # Step 2: Attempt to delete the corresponding .js, .template.js, or _template.js fil...
{ "end_byte": 2737, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/replace.sh" }
angular/packages/compiler-cli/test/compliance/test_cases/list_golden_update_rules.ts_0_563
import {exec} from 'shelljs'; const {BUILD_WORKSPACE_DIRECTORY} = process.env; const rulesResult = exec( 'yarn --silent bazel query \'filter("\\.update$", kind(rule, //packages/compiler-cli/test/compliance/test_cases:*))\' --output label', {cwd: BUILD_WORKSPACE_DIRECTORY, env: process.env, silent: true}); if...
{ "end_byte": 563, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/list_golden_update_rules.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/BUILD.bazel_0_370
load("//packages/compiler-cli/test/compliance/partial:partial_compliance_goldens.bzl", "partial_compliance_golden") package(default_visibility = ["//packages/compiler-cli/test/compliance:__subpackages__"]) filegroup( name = "test_cases", srcs = glob(["*/**"]), ) [partial_compliance_golden(filePath = path) fo...
{ "end_byte": 370, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/BUILD.bazel" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_pure_track_reuse_template.js_0_420
const $_forTrack0$ = ($index, $item) => $item.name[0].toUpperCase(); … function MyApp_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵrepeaterCreate(0, MyApp_For_1_Template, 1, 1, null, null, $_forTrack0$); $r3$.ɵɵrepeaterCreate(2, MyApp_For_3_Template, 1, 1, null, null, $_forTrack0$); } if (rf & 2) { $r3$.ɵ...
{ "end_byte": 420, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_pure_track_reuse_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_element_root_node_template.js_0_300
consts: [["foo", "1", "bar", "2", 3, "binding"], ["foo", "4", "bar", "5", 3, "binding"], ["foo", "7", "bar", "8", 3, "binding"]], … $r3$.ɵɵtemplate(0, MyApp_Conditional_0_Template, 2, 2, "div", 0)(1, MyApp_Conditional_1_Template, 2, 2, "div", 1)(2, MyApp_Conditional_2_Template, 2, 2, "div", 2);
{ "end_byte": 300, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_element_root_node_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_pure_track_reuse.ts_0_442
import {Component} from '@angular/core'; @Component({ template: ` @for (item of items; track item.name[0].toUpperCase()) { {{item.name}} } @for (otherItem of otherItems; track otherItem.name[0].toUpperCase()) { {{otherItem.name}} } `, standalone: false }) export class MyApp { i...
{ "end_byte": 442, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_pure_track_reuse.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_variables_listener.ts_0_347
import {Component} from '@angular/core'; @Component({ template: ` <div> {{message}} @for (item of items; track item; let ev = $even) { <div (click)="log($index, ev, $first, $count)"></div> } </div> `, standalone: false }) export class MyApp { message = 'hello'; items = [...
{ "end_byte": 347, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_variables_listener.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_listener_computed_template_variables_template.js_0_4303
function MyApp_For_1_For_2_For_3_Template(rf, ctx) { if (rf & 1) { const $_r19$ = $r3$.ɵɵgetCurrentView(); $r3$.ɵɵelementStart(0, "button", 0); $r3$.ɵɵlistener("click", function MyApp_For_1_For_2_For_3_Template_button_click_0_listener() { const $restoredCtx$ = $r3$.ɵɵrestoreView($_r19$); const...
{ "end_byte": 4303, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_listener_computed_template_variables_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_nested_alias_listeners_template.pipeline.js_0_2614
function MyApp_Conditional_0_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) { const $_r7$ = $r3$.ɵɵgetCurrentView(); $r3$.ɵɵelementStart(0, "button", 0); $r3$.ɵɵlistener("click", function MyApp_Conditional_0_Conditional_1_Conditional_1_Template_button_click_0_listener() { const $innermost_r5$ =...
{ "end_byte": 2614, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_nested_alias_listeners_template.pipeline.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_template_root_node_template.js_0_297
consts: [["foo", "1", "bar", "2", 3, "binding"], ["foo", "4", "bar", "5", 3, "binding"], ["foo", "7", "bar", "8", 3, "binding"]], … $r3$.ɵɵtemplate(0, MyApp_Conditional_0_Template, 1, 1, null, 0)(1, MyApp_Conditional_1_Template, 1, 1, null, 1)(2, MyApp_Conditional_2_Template, 1, 1, null, 2);
{ "end_byte": 297, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_template_root_node_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_variables_scope.ts_0_500
import {Component} from '@angular/core'; @Component({ template: ` {{$index}} {{$count}} {{$first}} {{$last}} @for (item of items; track item) { {{$index}} {{$count}} {{$first}} {{$last}} } {{$index}} {{$count}} {{$first}} {{$last}} `, standalone: false }) export class MyApp { messag...
{ "end_byte": 500, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_variables_scope.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_track_method_only_index.ts_0_346
import {Component} from '@angular/core'; @Component({ template: ` <div> {{message}} @for (item of items; track trackFn($index)) {} </div> `, standalone: false }) export class MyApp { message = 'hello'; items = [{name: 'one'}, {name: 'two'}, {name: 'three'}]; trackFn(index: number) ...
{ "end_byte": 346, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_track_method_only_index.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_with_empty_template.js_0_754
function MyApp_For_3_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0); } if (rf & 2) { const $item_r2$ = ctx.$implicit; $r3$.ɵɵtextInterpolate1(" ", $item_r2$.name, " "); } } function MyApp_ForEmpty_4_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0, " No items! "); } } … function MyApp_Temp...
{ "end_byte": 754, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_with_empty_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_track_method_nested_template.js_0_126
$r3$.ɵɵrepeaterCreate(0, MyApp_ng_template_2_For_1_Template, 0, 0, null, null, $r3$.ɵɵcomponentInstance().trackFn, true);
{ "end_byte": 126, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_track_method_nested_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_track_by_field.ts_0_336
import {Component} from '@angular/core'; @Component({ template: ` <div> {{message}} @for (item of items; track item.name[0].toUpperCase()) { {{item.name}} } </div> `, standalone: false }) export class MyApp { message = 'hello'; items = [{name: 'one'}, {name: 'two'}, {nam...
{ "end_byte": 336, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_track_by_field.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_track_literals_template.js_0_325
function $_forTrack0$($index, $item) { return this.trackFn({ foo: $item, bar: $item }, [$item, $item]); } … function MyApp_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵrepeaterCreate(0, MyApp_For_1_Template, 1, 1, null, null, $_forTrack0$, true); } if (rf & 2) { $r3$.ɵɵrepeater(ctx.items); } }
{ "end_byte": 325, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_track_literals_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/empty_switch_template.js_0_341
function MyApp_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "div"); $r3$.ɵɵtext(1); $r3$.ɵɵtext(2); $r3$.ɵɵelementEnd(); } if (rf & 2) { $r3$.ɵɵadvance(); $r3$.ɵɵtextInterpolate1(" ", ctx.message, " "); $r3$.ɵɵadvance(); $r3$.ɵɵtextInterpolate1(" ", ctx.message, " "); ...
{ "end_byte": 341, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/empty_switch_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_computed_template_variables.ts_0_1078
import {Component} from '@angular/core'; @Component({ template: ` @for (outer of items; track outer; let outerOdd = $odd, outerEven = $even, outerFirst = $first, outerLast = $last) { Outer vars: {{outerOdd}} {{outerEven}} {{outerFirst}} {{outerLast}} @for (inner of items; track inner; let innerOdd ...
{ "end_byte": 1078, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_computed_template_variables.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_without_default.ts_0_378
import {Component} from '@angular/core'; @Component({ template: ` <div> {{message}} @switch (value()) { @case (0) { case 0 } @case (1) { case 1 } @case (2) { case 2 } } </div> `, standalone: false }) expor...
{ "end_byte": 378, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_without_default.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_if_else_if_template.js_0_962
function MyApp_Conditional_2_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0, " one "); } } function MyApp_Conditional_3_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0, " two "); } } function MyApp_Conditional_4_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0, " three "); } } function MyApp_...
{ "end_byte": 962, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_if_else_if_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_element_root_node.ts_0_431
import {Component, Directive, Input} from '@angular/core'; @Directive({selector: '[binding]'}) export class Binding { @Input() binding = 0; } @Component({ template: ` @for (item of items; track item) { <div foo="1" bar="2" [binding]="3">{{item}}</div> } @empty { <span empty-foo="1" empty-bar="...
{ "end_byte": 431, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_element_root_node.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_variables.ts_0_395
import {Component} from '@angular/core'; @Component({ template: ` <div> {{message}} @for (item of items; track item) { Index: {{$index}} First: {{$first}} Last: {{$last}} Even: {{$even}} Odd: {{$odd}} Count: {{$count}} } </div> `, stan...
{ "end_byte": 395, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_variables.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_impure_track_reuse.ts_0_532
import {Component} from '@angular/core'; @Component({ template: ` @for (item of items; track trackFn(item, message)) { {{item.name}} } @for (otherItem of otherItems; track trackFn(otherItem, message)) { {{otherItem.name}} } `, standalone: false }) export class MyApp { message =...
{ "end_byte": 532, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_impure_track_reuse.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_template_root_node.ts_0_528
import {Component, Directive, Input} from '@angular/core'; @Directive({selector: '[binding]'}) export class Binding { @Input() binding = 0; } @Component({ template: ` @if (expr === 0) { <ng-template foo="1" bar="2" [binding]="3">{{expr}}</ng-template> } @else if (expr === 1) { <ng-template fo...
{ "end_byte": 528, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_template_root_node.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_track_by_index.ts_0_316
import {Component} from '@angular/core'; @Component({ template: ` <div> {{message}} @for (item of items; track $index) { {{item.name}} } </div> `, standalone: false }) export class MyApp { message = 'hello'; items = [{name: 'one'}, {name: 'two'}, {name: 'three'}]; }
{ "end_byte": 316, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_track_by_index.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_template_root_node_template.js_0_276
consts: [["foo", "1", "bar", "2", 3, "binding"], ["foo", "4", "bar", "5", 3, "binding"], ["foo", "7", "bar", "8", 3, "binding"]], … $r3$.ɵɵtemplate(0, MyApp_Case_0_Template, 1, 1, null, 0)(1, MyApp_Case_1_Template, 1, 1, null, 1)(2, MyApp_Case_2_Template, 1, 1, null, 2);
{ "end_byte": 276, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_template_root_node_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_with_alias.ts_0_276
import {Component} from '@angular/core'; @Component({ template: ` <div> {{message}} @if (value(); as alias) { {{value()}} as {{alias}} } </div> `, standalone: false }) export class MyApp { message = 'hello'; value = () => 1; }
{ "end_byte": 276, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_with_alias.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_template_variables.ts_0_624
import {Component} from '@angular/core'; @Component({ template: ` <div> {{message}} @for (item of items; track item; let outerCount = $count) { {{item.name}} @for (subitem of item.subItems; track subitem) { Outer: {{outerCount}} Inner: {{$count}} } ...
{ "end_byte": 624, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_template_variables.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_for_template.js_0_604
function MyApp_For_3_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0); } if (rf & 2) { const item_r1 = ctx.$implicit; $r3$.ɵɵtextInterpolate1(" ", item_r1.name, " "); } } … function MyApp_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "div"); $r3$.ɵɵtext(1); $r3$.ɵɵrepeaterCr...
{ "end_byte": 604, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_for_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_nested_alias_listeners.ts_0_480
import {Component} from '@angular/core'; @Component({ template: ` @if (value(); as root) { <button (click)="log(value(), root)"></button> @if (value(); as inner) { <button (click)="log(value(), root, inner)"></button> @if (value(); as innermost) { <button (click)="log(va...
{ "end_byte": 480, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_nested_alias_listeners.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for.ts_0_579
import {Component} from '@angular/core'; @Component({ template: ` <div> {{message}} @for (item of items; track item) { {{item.name}} @for (subitem of item.subItems; track $index) { {{subitem}} from {{item.name}} } } </div> `, standalone: false }) ex...
{ "end_byte": 579, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_switch.ts_0_632
import {Component} from '@angular/core'; @Component({ template: ` <div> {{message}} @switch (value()) { @case (0) { case 0 } @case (1) { @switch (nestedValue()) { @case (0) { nested case 0 } @case (1) { ...
{ "end_byte": 632, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_switch.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_if_template.js_0_1834
function MyApp_Conditional_2_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0, " zero "); } } function MyApp_Conditional_3_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0, " one "); } } function MyApp_Conditional_4_Conditional_0_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0, " inner zero "); ...
{ "end_byte": 1834, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_if_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_switch.ts_0_437
import {Component} from '@angular/core'; @Component({ template: ` <div> {{message}} @switch (value()) { @case (0) { case 0 } @case (1) { case 1 } @case (2) { case 2 } @default { default } }...
{ "end_byte": 437, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_switch.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_switch_template.js_0_1555
function MyApp_Case_2_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0, " case 0 "); } } function MyApp_Case_3_Case_0_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0, " nested case 0 "); } } function MyApp_Case_3_Case_1_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0, " nested case 1 "); } } f...
{ "end_byte": 1555, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_switch_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_template_variables_template.js_0_1082
function MyApp_For_3_For_2_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0); } if (rf & 2) { const $count_r7$ = ctx.$count; const $outerCount_r3$ = $r3$.ɵɵnextContext().$count; $r3$.ɵɵtextInterpolate2(" Outer: ", $outerCount_r3$, " Inner: ", $count_r7$, " "); } } function MyApp_For_3_Template(r...
{ "end_byte": 1082, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_template_variables_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_variables_template.pipeline.js_0_875
function MyApp_For_3_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0); } if (rf & 2) { const $index_r2$ = ctx.$index; const $index_4_r2$ = ctx.$index; const $count_r3$ = ctx.$count; const $count_4_r2$ = ctx.$count; $r3$.ɵɵtextInterpolate6(" Index: ", $index_r2$, " First: ", $index_4_r2$ === 0, " La...
{ "end_byte": 875, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_variables_template.pipeline.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_listener_computed_template_variables.ts_0_1213
import {Component} from '@angular/core'; @Component({ template: ` @for (outer of items; track outer; let outerOdd = $odd, outerEven = $even, outerFirst = $first, outerLast = $last) { <button (click)="outerCb(outerOdd, outerEven, outerFirst, outerLast)"></button> @for (inner of items; track inner; ...
{ "end_byte": 1213, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_listener_computed_template_variables.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_variables_scope_template.pipeline.js_0_890
function MyApp_For_2_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0); } if (rf & 2) { const $index_r2$ = ctx.$index; const $index_2_r2$ = ctx.$index; const $count_r3$ = ctx.$count; const $count_2_r3$ = ctx.$count; $r3$.ɵɵtextInterpolate4(" ", $index_r2$, " ", $count_r3$, " ", $index_2_r2$ === 0, "...
{ "end_byte": 890, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_variables_scope_template.pipeline.js" }