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: docs/data/routes/docs/client-frameworks/angular/angular-placeholders/en.md
+11-1
Original file line number
Diff line number
Diff line change
@@ -271,4 +271,14 @@ class MyRendering {
271
271
@Input() something:Function;
272
272
@Output() onSomething =newEventEmitter<string>();
273
273
}
274
-
```
274
+
```
275
+
276
+
## Lazy loading placeholder
277
+
278
+
When lazy-loading a sitecore component, the placeholder will appear empty by default. A temporary body during loading of the component can be added to the placeholder by adding a body. When the component finished loading, the temporary body is replaced with the actual content. A simplified example is:
@@ -175,4 +178,4 @@ Here is a list of all supported structural directives, and how they are used (wh
175
178
|------|-------------|
176
179
| default / `scFile`| The component or route field you wish to render. Should be Sitecore type `File`. |
177
180
178
-
> The `File` field does not support inline editing via the Experience Editor in Sitecore, but can be edited via the default field editor on components.
181
+
> The `File` field does not support inline editing via the Experience Editor in Sitecore, but can be edited via the default field editor on components.
console.warn(`Placeholder name was not specified, and explicit renderings array was not passed. Placeholder requires either name and rendering, or renderings.`);
0 commit comments