You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-24Lines changed: 27 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -33,13 +33,13 @@ Netlify automatically detects Angular projects and sets up the latest version of
33
33
34
34
There's no further configuration needed from Netlify users.
35
35
36
-
### For Angular 19
36
+
### For Angular 19 and Angular 20
37
37
38
38
If you are using Server-Side Rendering you will need to install Angular Runtime in your Angular project to be able to import required utilities to successfully deploy request handler to Netlify. See [Manual Installation](#manual-installation) for installations details. See [Request handling](#request-handling) for more information about request handler.
39
39
40
40
### Manual Installation
41
41
42
-
If you need to pin this plugin to a specific version or if you are using Server-Side Rendering with Angular 19, you will need to install the plugin manually.
42
+
If you need to pin this plugin to a specific version or if you are using Server-Side Rendering with Angular 19 or Angular 20, you will need to install the plugin manually.
43
43
44
44
Install it via your package manager:
45
45
@@ -77,9 +77,10 @@ To test this in local development, run your Angular project using `netlify serve
77
77
```sh
78
78
netlify serve
79
79
```
80
-
### App Engine Developer Preview usage with Angular@19
81
80
82
-
If you opt into the App Engine Developer Preview accessing `Request` and `Context` objects is streamlined. Instead of custom Netlify prefixed providers, you should use the standardized injection tokens for those provided by `@angular/core` instead:
81
+
### App Engine usage
82
+
83
+
With App Engine accessing `Request` and `Context` objects is streamlined. Instead of custom Netlify prefixed providers, you should use the standardized injection tokens for those provided by `@angular/core` instead:
83
84
84
85
```diff
85
86
+import { REQUEST, REQUEST_CONTEXT } from '@angular/core'
@@ -101,6 +102,8 @@ export class FooComponent {
101
102
}
102
103
```
103
104
105
+
Note that App Engine in Angular 19 is in Developer Preview and requires explicit opt-in.
106
+
104
107
## Request handling
105
108
106
109
Starting with Angular@19. The build plugin makes use of the `server.ts` file to handle requests. The default Angular scaffolding generates incompatible code for Netlify so the build plugin will swap it for compatible `server.ts` file automatically if it detects default version being used.
@@ -111,52 +114,52 @@ Make sure you have `@netlify/angular-runtime` version 2.2.0 or later installed i
111
114
112
115
If you need to customize the request handling, you can do so by copying one of code snippets below to your `server.ts` file.
113
116
114
-
If you did not opt into the App Engine Developer Preview:
117
+
If you are using Angular 20 or Angular 19 with App Engine Developer Preview:
0 commit comments