angular/packages
Alan Agius c9541f4c49 fix(localize): update ng add schematic to support Angular CLI version 15 (#47763)
Prior to this, the `@angular/localize/init` was added as a polyfill which caused the `@angular/localize` types not to be included in the TypeScript program which caused errors such as the below:

```
Error: src/app/app.component.ts:9:11 - error TS2304: Cannot find name '$localize'.
```

With the recent changes in the CLI (https://github.com/angular/angular-cli/pull/24032), adding `@angular/localize/init` as polyfil or in the `main.server.ts` is no longer necessary. Instead we add this as a TypeScript type. When users are running in JIT mode, we add `@angular/localize/init` as an additional entrypoint.

This change also exposes the `$localize` method as a global when importing `@angular/localize`.

Closes #47677

PR Close #47763
2022-10-17 09:58:21 +02:00
..
animations feat(core): add support for Node.js version 18 (#47730) 2022-10-11 17:21:19 +00:00
bazel build: update dependency @rollup/plugin-commonjs to v23 (#47711) 2022-10-11 23:09:06 +00:00
benchpress build: clean up references to old master branch (#45856) 2022-05-04 16:23:33 -07:00
common refactor(common): make provideHttpClient return EnvironmentProviders (#47758) 2022-10-13 16:44:59 +00:00
compiler fix(compiler): update element schema (#47552) 2022-10-11 17:21:47 +00:00
compiler-cli refactor(compiler-cli): use mkdirSync recursive option instead of custom implementation (#47678) 2022-10-13 13:51:03 -07:00
core feat(core): add support for Node.js version 18 (#47730) 2022-10-11 17:21:19 +00:00
docs docs: fix packages\docs\di\di.md (#46704) 2022-07-08 17:53:39 +00:00
elements feat(core): add support for Node.js version 18 (#47730) 2022-10-11 17:21:19 +00:00
examples feat(core): support object-based DI flags in TestBed.inject() (#46761) 2022-09-27 10:09:53 -07:00
forms feat(core): add support for Node.js version 18 (#47730) 2022-10-11 17:21:19 +00:00
language-service feat(core): add support for Node.js version 18 (#47730) 2022-10-11 17:21:19 +00:00
localize fix(localize): update ng add schematic to support Angular CLI version 15 (#47763) 2022-10-17 09:58:21 +02:00
misc/angular-in-memory-web-api build: update angular version of in-memory-web-api (#46344) 2022-06-13 17:40:09 +00:00
platform-browser feat(core): add support for Node.js version 18 (#47730) 2022-10-11 17:21:19 +00:00
platform-browser-dynamic feat(core): add support for Node.js version 18 (#47730) 2022-10-11 17:21:19 +00:00
platform-server feat(core): add support for Node.js version 18 (#47730) 2022-10-11 17:21:19 +00:00
private/testing refactor(core): drop unused fields from the RootContext (#46806) 2022-08-05 09:58:06 -07:00
router feat(core): add support for Node.js version 18 (#47730) 2022-10-11 17:21:19 +00:00
service-worker feat(core): add support for Node.js version 18 (#47730) 2022-10-11 17:21:19 +00:00
upgrade feat(core): add support for Node.js version 18 (#47730) 2022-10-11 17:21:19 +00:00
zone.js fix(zone.js): cancel tasks only when they are scheduled or running (#46435) 2022-10-11 17:20:54 +00:00
BUILD.bazel build: Auto-gen tsec tsconfig files (#43440) 2021-09-17 17:17:34 +00:00
circular-deps-test.conf.js build: ignore type only imports/exports for circular dependency checks (#47017) 2022-08-18 12:06:09 -07:00
empty.ts
goog.d.ts refactor(core): replace references to goog.LOCALE with goog.getLocale() (#43089) 2021-08-10 10:35:26 -07:00
license-banner.txt build: bump license year (#44590) 2022-01-04 12:05:25 -08:00
README.md
system.d.ts
tsconfig-build.json build: enable useUnknownInCatchVariables (#44679) 2022-02-01 18:17:29 +00:00
tsconfig-legacy-saucelabs.json build: bundle spec files for saucelabs legacy job (#44281) 2021-11-30 11:56:04 -05:00
tsconfig-test.json build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
tsconfig-tsec-base.json build: update tsconfigs to use ES2020 as target and module (#43431) 2021-10-01 18:28:42 +00:00
tsconfig.json build: enable useUnknownInCatchVariables (#44679) 2022-02-01 18:17:29 +00:00
tsec-exemption.json build: Enable tsec checks for critical packages. (#43108) 2021-09-13 14:45:57 -07:00
types.d.ts build: update to jasmine 4.0 (#45558) 2022-04-11 16:25:28 +00:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT