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: adev/src/app/editor/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@
81
81
5. The file is added to the TypeScript virtual file system, allowing the TypeScript web worker to provide diagnostics, autocomplete and type features for the new file. Also, exports from the new file are available in other files.
82
82
6. The new file is added as the last tab in the code editor and the new file can be edited.
83
83
84
-
Note: If the new file name matches a file that already exists but is hidden in the code editor, the content for that file will show up in the created file. An example for a file that always exists is `index.html`.
84
+
NOTE: If the new file name matches a file that already exists but is hidden in the code editor, the content for that file will show up in the created file. An example for a file that always exists is `index.html`.
85
85
86
86
### Deleting a file
87
87
@@ -90,7 +90,7 @@ Note: If the new file name matches a file that already exists but is hidden in t
90
90
3. The file is removed from the TypeScript virtual file system.
91
91
4. The file is removed from the code editor tabs.
92
92
93
-
Note: Some files can't be deleted to prevent users to break the app, being `src/main.ts`and `src/index.html`
93
+
NOTE: Some files can't be deleted to prevent users to break the app, being `src/main.ts`and `src/index.html`
Copy file name to clipboardExpand all lines: adev/src/content/guide/components/styling.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ the [`:host`](https://developer.mozilla.org/docs/Web/CSS/:host)
63
63
and [`:host-context()`](https://developer.mozilla.org/docs/Web/CSS/:host-context) pseudo
64
64
classes without
65
65
using [Shadow DOM](https://developer.mozilla.org/docs/Web/Web_Components/Using_shadow_DOM).
66
-
During compilation, the framework transforms these pseudo classes into attributes so it doesn't
66
+
During compilation, the framework transforms these pseudo classes into attributes so it doesn't
67
67
comply with these native pseudo classes' rules at runtime (e.g. browser compatibility, specificity). Angular's
68
68
emulated encapsulation mode does not support any other pseudo classes related to Shadow DOM, such
69
69
as `::shadow` or `::part`.
@@ -97,7 +97,7 @@ Shadow DOM in your application before enabling this option.
97
97
This mode disables all style encapsulation for the component. Any styles associated with the
98
98
component behave as global styles.
99
99
100
-
Note: In `Emulated` and `ShadowDom` modes, Angular doesn't 100% guarantee that your component's styles will always override styles coming from outside it.
100
+
NOTE: In `Emulated` and `ShadowDom` modes, Angular doesn't 100% guarantee that your component's styles will always override styles coming from outside it.
101
101
It is assumed that these styles have the same specificity as your component's styles in case of collision.
Copy file name to clipboardExpand all lines: adev/src/content/guide/hydration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ Event replay supports _native browser events_, for example `click`, `mouseover`,
93
93
94
94
---
95
95
96
-
This feature ensures a consistent user experience, preventing user actions performed before Hydration from being ignored. Note: if you have [incremental hydration](guide/incremental-hydration) enabled, event replay is automatically enabled under the hood.
96
+
This feature ensures a consistent user experience, preventing user actions performed before Hydration from being ignored. NOTE: if you have [incremental hydration](guide/incremental-hydration) enabled, event replay is automatically enabled under the hood.
Copy file name to clipboardExpand all lines: adev/src/content/guide/image-optimization.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ In addition to optimizing the loading of the LCP image, `NgOptimizedImage` enfor
19
19
20
20
If you're using a background image in CSS, [start here](#how-to-migrate-your-background-image).
21
21
22
-
**Note: Although the `NgOptimizedImage` directive was made a stable feature in Angular version 15, it has been backported and is available as a stable feature in versions 13.4.0 and 14.3.0 as well.**
22
+
**NOTE: Although the `NgOptimizedImage` directive was made a stable feature in Angular version 15, it has been backported and is available as a stable feature in versions 13.4.0 and 14.3.0 as well.**
23
23
24
24
## Getting Started
25
25
@@ -162,10 +162,10 @@ You can also specify a placeholder using a base64 [data URL](https://developer.m
162
162
163
163
<docs-codelanguage="angular-html">
164
164
165
-
<img
166
-
ngSrc="cat.jpg"
167
-
width="400"
168
-
height="200"
165
+
<img
166
+
ngSrc="cat.jpg"
167
+
width="400"
168
+
height="200"
169
169
placeholder="data:image/png;base64,iVBORw0K..."
170
170
/>
171
171
@@ -179,11 +179,11 @@ By default, NgOptimizedImage applies a CSS blur effect to image placeholders. To
179
179
180
180
<docs-codelanguage="angular-html">
181
181
182
-
<img
183
-
ngSrc="cat.jpg"
184
-
width="400"
185
-
height="200"
186
-
placeholder
182
+
<img
183
+
ngSrc="cat.jpg"
184
+
width="400"
185
+
height="200"
186
+
placeholder
187
187
[placeholderConfig]="{blur: false}"
188
188
/>
189
189
@@ -235,7 +235,7 @@ Defining a [`srcset` attribute](https://developer.mozilla.org/docs/Web/API/HTMLI
235
235
236
236
If your image should be "fixed" in size (i.e. the same size across devices, except for [pixel density](https://web.dev/codelab-density-descriptors/)), there is no need to set a `sizes` attribute. A `srcset` can be generated automatically from the image's width and height attributes with no further input required.
@@ -416,7 +416,7 @@ Note that in the above example, we've invented the 'roundedCorners' property nam
416
416
417
417
The NgOptimizedImage does not directly support the `background-image` css property, but it is designed to easily accommodate the use case of having an image as the background of another element.
418
418
419
-
For a step-by-step process for migration from `background-image` to `NgOptimizedImage`, see the [How to migrate your background image](#how-to-migrate-your-background-image) section above.
419
+
For a step-by-step process for migration from `background-image` to `NgOptimizedImage`, see the [How to migrate your background image](#how-to-migrate-your-background-image) section above.
420
420
421
421
### Why can't I use `src` with `NgOptimizedImage`?
422
422
@@ -446,19 +446,19 @@ For maintenance reasons, we don't currently plan to support additional built-in
446
446
447
447
### Can I use this with the `<picture>` tag
448
448
449
-
No, but this is on our roadmap, so stay tuned.
449
+
No, but this is on our roadmap, so stay tuned.
450
450
451
451
If you're waiting on this feature, please upvote the Github issue [here](https://github.com/angular/angular/issues/56594).
452
452
453
453
### How do I find my LCP image with Chrome DevTools?
454
454
455
455
1. Using the performance tab of the Chrome DevTools, click on the "start profiling and reload page" button on the top left. It looks like a page refresh icon.
456
456
457
-
2. This will trigger a profiling snapshot of your Angular application.
457
+
2. This will trigger a profiling snapshot of your Angular application.
458
458
459
459
3. Once the profiling result is available, select "LCP" in the timings section.
460
460
461
-
4. A summary entry should appear in the panel at the bottom. You can find the LCP element in the row for "related node". Clicking on it will reveal the element in the Elements panel.
461
+
4. A summary entry should appear in the panel at the bottom. You can find the LCP element in the row for "related node". Clicking on it will reveal the element in the Elements panel.
462
462
463
463
<imgalt="LCP in the Chrome DevTools"src="assets/images/guide/image-optimization/devtools-lcp.png">
0 commit comments