forked from angular/angular-ja
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade origin * sync untranslated files * migrate small changes * migrate medium changes * migrate navigation * lint fix
- Loading branch information
Showing
68 changed files
with
580 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@name JSONP support in HttpClient configuration | ||
@category runtime | ||
@shortDescription Missing JSONP support in HttpClient configuration | ||
|
||
@description | ||
Angular produces this error when you attempt a `JSONP` request without providing the necessary support for it in the `HttpClient` configuration. | ||
To enable `JSONP` support, you can do one of the following: | ||
- add the `withJsonpSupport()` as an argument during the `provideHttpClient` function call (e.g. `provideHttpClient(withJsonpSupport())`) when `bootstrapApplication` is used | ||
- import the `HttpClientJsonpModule` in your root AppModule, when NgModule-based bootstrap is used. | ||
|
||
|
||
@debugging | ||
Make sure that the JSONP support is added into your application either by calling the `withJsonpSupport()` function (when the `provideHttpClient()` is used) or importing the `HttpClientJsonpModule` module as described above. | ||
|
||
See [Make a JSONP request](/guide/http-make-jsonp-request) for more info. | ||
|
||
<!-- links --> | ||
|
||
<!-- external links --> | ||
|
||
<!-- end links --> | ||
|
||
@reviewed 2023-05-02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
@name NgZone remains unstable | ||
@category runtime | ||
@shortDescription NgZone remains unstable after a long period of time | ||
|
||
@description | ||
This warning occurs when hydration is enabled on the client but the NgZone remains unstable for a long period of time. | ||
|
||
The {@link ApplicationRef#isStable} API uses NgZone to report when an application becomes `stable` and `unstable`. An application is considered stable when there are no pending microtasks or macrotasks. | ||
|
||
Angular Hydration relies on a signal from Zone.js when it becomes stable inside an application: | ||
|
||
* during the server-side rendering (SSR) to start the serialization process | ||
* in a browser this signal is used to start the post-hydration cleanup to remove DOM nodes that remained unclaimed | ||
|
||
This warning is displayed when the `ApplicationRef.isStable()` doesn't emit `true` within 10 seconds. If this is intentional and your application becomes stable later, you can ignore this warning. | ||
|
||
**Macrotasks** | ||
|
||
Macrotasks include functions like `setInterval`, `setTimeout`, `requestAnimationFrame` etc. | ||
If one of these functions is called in the initialization phase of the app or the bootstrapped components, the application will remain unstable. | ||
|
||
```typescript | ||
@Component({ | ||
standalone: true, | ||
selector: 'app', | ||
template: ``, | ||
}) | ||
class SimpleComponent { | ||
constructor() { | ||
setInterval(() => { ... }, 1000) | ||
|
||
// or | ||
|
||
setTimeout(() => { ... }, 10_000) | ||
} | ||
} | ||
``` | ||
|
||
If these functions need to be called in the initialization phase, invoking them outside the angular zone solves the issue. | ||
|
||
```typescript | ||
class SimpleComponent { | ||
constructor() { | ||
inject(NgZone).runOutsideAngular(() => { | ||
setInterval(() => {}, 1000); | ||
}) | ||
} | ||
} | ||
``` | ||
|
||
@debugging | ||
|
||
Verify that you don't have any long standing microtask or macrotasks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.