Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Fix examples using $localize (#1235)
Browse files Browse the repository at this point in the history
We weren't importing `@angular/localize` into the Stackblitz template which leads to errors for the examples that use it.

Fixes angular/components#27645.
  • Loading branch information
crisbeto authored Jan 2, 2024
1 parent 160601d commit 6e8c57c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/assets/stack-blitz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@angular/platform-browser": "^17.0.0",
"@angular/platform-browser-dynamic": "^17.0.0",
"@angular/router": "^17.0.0",
"@angular/ssr": "^17.0.0",
"@angular/localize": "^17.0.0",
"moment": "^2.18.1",
"rxjs": "~7.4.0",
"tslib": "^2.3.0",
Expand Down
1 change: 1 addition & 0 deletions src/assets/stack-blitz/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@angular/localize/init';
import {importProvidersFrom} from '@angular/core';
import {bootstrapApplication} from '@angular/platform-browser';
import {provideHttpClient} from '@angular/common/http';
Expand Down
17 changes: 9 additions & 8 deletions src/assets/stack-blitz/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,15 @@
dependencies:
tslib "^2.3.0"

"@angular/localize@^17.0.0":
version "17.0.8"
resolved "https://registry.yarnpkg.com/@angular/localize/-/localize-17.0.8.tgz#f2d4d1e2b2e573350c2dae9666a7cf7720be2d36"
integrity sha512-1zW8qWKNMH3r/x4KpwzzUmVY+iN76vYdhjA6gzZDnpJxpon9eyljNEildj9+zSWeNUr2LgJ6HnkIX9q1f3mXfA==
dependencies:
"@babel/core" "7.23.2"
fast-glob "3.3.1"
yargs "^17.2.1"

"@angular/material-moment-adapter@^17.0.0":
version "17.0.0"
resolved "https://registry.yarnpkg.com/@angular/material-moment-adapter/-/material-moment-adapter-17.0.0.tgz#812e267da15c772dac80903e849f6f8301a88bd7"
Expand Down Expand Up @@ -294,14 +303,6 @@
dependencies:
tslib "^2.3.0"

"@angular/ssr@^17.0.0":
version "17.0.0"
resolved "https://registry.yarnpkg.com/@angular/ssr/-/ssr-17.0.0.tgz#99694e9a602ab87e64415b8bbf35597551140d31"
integrity sha512-yctZuIR9AA9aaAQe6JzBNbBoRUy37449tYYpwdxmI1Fp5rsrzrlJ1HeFidrmca4k3RWXw3VZNpklPWStlZBm2Q==
dependencies:
critters "0.0.20"
tslib "^2.3.0"

"@assemblyscript/loader@^0.10.1":
version "0.10.1"
resolved "https://registry.yarnpkg.com/@assemblyscript/loader/-/loader-0.10.1.tgz#70e45678f06c72fa2e350e8553ec4a4d72b92e06"
Expand Down

0 comments on commit 6e8c57c

Please sign in to comment.