Skip to content

Commit cea9569

Browse files
authored
e2cca61a docs(component): remove redundant standalone flag (#4625)
1 parent 3414703 commit cea9569

File tree

16 files changed

+15
-15
lines changed

16 files changed

+15
-15
lines changed

commit_message

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c24cb334 docs(effects): remove redundant standalone flag (#4626)
1+
e2cca61a docs(component): remove redundant standalone flag (#4625)

generated/docs/api/component/LetDirective.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

generated/docs/api/component/PushPipe.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

generated/docs/guide/component/let.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"id": "guide/component/push",
33
"title": "Push Pipe",
4-
"contents": "\n\n\n <div class=\"github-links\">\n <a href=\"https://github.com/ngrx/platform/edit/main/projects/ngrx.io/content/guide/component/push.md?message=docs%3A%20describe%20your%20change...\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n </div>\n\n\n<div class=\"content\">\n<h1 id=\"push-pipe\">Push Pipe<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/component/push#push-pipe\"><i class=\"material-icons\">link</i></a></h1>\n<p>The <code><a href=\"api/component/PushPipe\" class=\"code-anchor\">ngrxPush</a></code> pipe serves as a drop-in replacement for the <code>async</code> pipe.\nIt contains intelligent handling of change detection to enable us\nrunning in zone-full as well as zone-less mode without any changes to the code.</p>\n<h2 id=\"usage\">Usage<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/component/push#usage\"><i class=\"material-icons\">link</i></a></h2>\n<p>The <code><a href=\"api/component/PushPipe\" class=\"code-anchor\">ngrxPush</a></code> pipe is a standalone pipe.\nTo use it, add the <code><a href=\"api/component/PushPipe\" class=\"code-anchor\">PushPipe</a></code> to the <code>imports</code> of your standalone component or NgModule:</p>\n<code-example language=\"ts\">\n<a href=\"api/store-devtools/DevToolsFeatureOptions#import\" class=\"code-anchor\">import</a> { Component } from '@angular/core';\n<a href=\"api/store-devtools/DevToolsFeatureOptions#import\" class=\"code-anchor\">import</a> { <a href=\"api/component/PushPipe\" class=\"code-anchor\">PushPipe</a> } from '@ngrx/component';\n\n@Component({\n // ... other <a href=\"api/data/EntityDefinition#metadata\" class=\"code-anchor\">metadata</a>\n standalone: true,\n imports: [\n // ... other imports\n <a href=\"api/component/PushPipe\" class=\"code-anchor\">PushPipe</a>,\n ],\n})\n<a href=\"api/store-devtools/DevToolsFeatureOptions#export\" class=\"code-anchor\">export</a> class MyStandaloneComponent {}\n</code-example>\n<h2 id=\"comparison-with-async-pipe\">Comparison with <code>async</code> Pipe<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/component/push#comparison-with-async-pipe\"><i class=\"material-icons\">link</i></a></h2>\n<p>The current way of binding an observable to the view looks like this:</p>\n<code-example language=\"html\">\n&#x3C;p>{{ number$ | async }}&#x3C;/p>\n\n&#x3C;ng-container *ngIf=\"number$ | async as n\">{{ n }}&#x3C;/ng-container>\n\n&#x3C;app-number [number]=\"number$ | async\">&#x3C;/app-number>\n</code-example>\n<p>The <code>async</code> pipe marks the component and all its ancestors as dirty, but does not trigger the change detection mechanism.\nIt needs the <code>zone.js</code> microtask queue to exhaust until <code>ApplicationRef.tick</code> is called to render all dirty marked components.\nTo use the <code>async</code> pipe in zone-less mode, we have to manually trigger the change detection each time an observable\nemits a new value.</p>\n<p>Fortunately, the <code><a href=\"api/component/PushPipe\" class=\"code-anchor\">ngrxPush</a></code> pipe solves this problem by scheduling a new change detection cycle in zone-less mode when\nan observable emits a new value. It can be used as follows:</p>\n<code-example language=\"html\">\n&#x3C;p>{{ number$ | <a href=\"api/component/PushPipe\" class=\"code-anchor\">ngrxPush</a> }}&#x3C;/p>\n\n&#x3C;ng-container *ngIf=\"number$ | <a href=\"api/component/PushPipe\" class=\"code-anchor\">ngrxPush</a> as n\">{{ n }}&#x3C;/ng-container>\n\n&#x3C;app-number [number]=\"number$ | <a href=\"api/component/PushPipe\" class=\"code-anchor\">ngrxPush</a>\">&#x3C;/app-number>\n</code-example>\n<h2 id=\"combining-multiple-observables\">Combining Multiple Observables<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/component/push#combining-multiple-observables\"><i class=\"material-icons\">link</i></a></h2>\n<p>The <code><a href=\"api/component/PushPipe\" class=\"code-anchor\">ngrxPush</a></code> pipe can be also used with a dictionary of observables in the\nfollowing way:</p>\n<code-example language=\"html\">\n&#x3C;code>\n {{ { users: users$, query: query$ } | ngrxPush | json }}\n&#x3C;/code>\n</code-example>\n<h2 id=\"included-features\">Included Features<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/component/push#included-features\"><i class=\"material-icons\">link</i></a></h2>\n<ul>\n<li>Takes observables or promises, retrieves their values, and passes the value to the template.</li>\n<li>Allows combining multiple observables in the template.</li>\n<li>Handles <code>null</code> and <code>undefined</code> values in a clean unified/structured way.</li>\n<li>Triggers change detection using the <code><a href=\"api/component/RenderScheduler\" class=\"code-anchor\">RenderScheduler</a></code> that behaves differently in\nzone-full and zone-less mode.</li>\n<li>Distinct the same values in a row for better performance.</li>\n</ul>\n\n</div>\n\n<!-- links to this doc:\n - guide/component\n - guide/component-store/usage\n-->\n<!-- links from this doc:\n - api/component/PushPipe\n - api/component/RenderScheduler\n - api/data/EntityDefinition#metadata\n - api/store-devtools/DevToolsFeatureOptions#export\n - api/store-devtools/DevToolsFeatureOptions#import\n - guide/component/push#combining-multiple-observables\n - guide/component/push#comparison-with-async-pipe\n - guide/component/push#included-features\n - guide/component/push#push-pipe\n - guide/component/push#usage\n - https://github.com/ngrx/platform/edit/main/projects/ngrx.io/content/guide/component/push.md?message=docs%3A%20describe%20your%20change...\n-->"
4+
"contents": "\n\n\n <div class=\"github-links\">\n <a href=\"https://github.com/ngrx/platform/edit/main/projects/ngrx.io/content/guide/component/push.md?message=docs%3A%20describe%20your%20change...\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n </div>\n\n\n<div class=\"content\">\n<h1 id=\"push-pipe\">Push Pipe<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/component/push#push-pipe\"><i class=\"material-icons\">link</i></a></h1>\n<p>The <code><a href=\"api/component/PushPipe\" class=\"code-anchor\">ngrxPush</a></code> pipe serves as a drop-in replacement for the <code>async</code> pipe.\nIt contains intelligent handling of change detection to enable us\nrunning in zone-full as well as zone-less mode without any changes to the code.</p>\n<h2 id=\"usage\">Usage<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/component/push#usage\"><i class=\"material-icons\">link</i></a></h2>\n<p>The <code><a href=\"api/component/PushPipe\" class=\"code-anchor\">ngrxPush</a></code> pipe is a standalone pipe.\nTo use it, add the <code><a href=\"api/component/PushPipe\" class=\"code-anchor\">PushPipe</a></code> to the <code>imports</code> of your standalone component or NgModule:</p>\n<code-example language=\"ts\">\n<a href=\"api/store-devtools/DevToolsFeatureOptions#import\" class=\"code-anchor\">import</a> { Component } from '@angular/core';\n<a href=\"api/store-devtools/DevToolsFeatureOptions#import\" class=\"code-anchor\">import</a> { <a href=\"api/component/PushPipe\" class=\"code-anchor\">PushPipe</a> } from '@ngrx/component';\n\n@Component({\n // ... other <a href=\"api/data/EntityDefinition#metadata\" class=\"code-anchor\">metadata</a>\n imports: [\n // ... other imports\n <a href=\"api/component/PushPipe\" class=\"code-anchor\">PushPipe</a>,\n ],\n})\n<a href=\"api/store-devtools/DevToolsFeatureOptions#export\" class=\"code-anchor\">export</a> class MyStandaloneComponent {}\n</code-example>\n<h2 id=\"comparison-with-async-pipe\">Comparison with <code>async</code> Pipe<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/component/push#comparison-with-async-pipe\"><i class=\"material-icons\">link</i></a></h2>\n<p>The current way of binding an observable to the view looks like this:</p>\n<code-example language=\"html\">\n&#x3C;p>{{ number$ | async }}&#x3C;/p>\n\n&#x3C;ng-container *ngIf=\"number$ | async as n\">{{ n }}&#x3C;/ng-container>\n\n&#x3C;app-number [number]=\"number$ | async\">&#x3C;/app-number>\n</code-example>\n<p>The <code>async</code> pipe marks the component and all its ancestors as dirty, but does not trigger the change detection mechanism.\nIt needs the <code>zone.js</code> microtask queue to exhaust until <code>ApplicationRef.tick</code> is called to render all dirty marked components.\nTo use the <code>async</code> pipe in zone-less mode, we have to manually trigger the change detection each time an observable\nemits a new value.</p>\n<p>Fortunately, the <code><a href=\"api/component/PushPipe\" class=\"code-anchor\">ngrxPush</a></code> pipe solves this problem by scheduling a new change detection cycle in zone-less mode when\nan observable emits a new value. It can be used as follows:</p>\n<code-example language=\"html\">\n&#x3C;p>{{ number$ | <a href=\"api/component/PushPipe\" class=\"code-anchor\">ngrxPush</a> }}&#x3C;/p>\n\n&#x3C;ng-container *ngIf=\"number$ | <a href=\"api/component/PushPipe\" class=\"code-anchor\">ngrxPush</a> as n\">{{ n }}&#x3C;/ng-container>\n\n&#x3C;app-number [number]=\"number$ | <a href=\"api/component/PushPipe\" class=\"code-anchor\">ngrxPush</a>\">&#x3C;/app-number>\n</code-example>\n<h2 id=\"combining-multiple-observables\">Combining Multiple Observables<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/component/push#combining-multiple-observables\"><i class=\"material-icons\">link</i></a></h2>\n<p>The <code><a href=\"api/component/PushPipe\" class=\"code-anchor\">ngrxPush</a></code> pipe can be also used with a dictionary of observables in the\nfollowing way:</p>\n<code-example language=\"html\">\n&#x3C;code>\n {{ { users: users$, query: query$ } | ngrxPush | json }}\n&#x3C;/code>\n</code-example>\n<h2 id=\"included-features\">Included Features<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/component/push#included-features\"><i class=\"material-icons\">link</i></a></h2>\n<ul>\n<li>Takes observables or promises, retrieves their values, and passes the value to the template.</li>\n<li>Allows combining multiple observables in the template.</li>\n<li>Handles <code>null</code> and <code>undefined</code> values in a clean unified/structured way.</li>\n<li>Triggers change detection using the <code><a href=\"api/component/RenderScheduler\" class=\"code-anchor\">RenderScheduler</a></code> that behaves differently in\nzone-full and zone-less mode.</li>\n<li>Distinct the same values in a row for better performance.</li>\n</ul>\n\n</div>\n\n<!-- links to this doc:\n - guide/component\n - guide/component-store/usage\n-->\n<!-- links from this doc:\n - api/component/PushPipe\n - api/component/RenderScheduler\n - api/data/EntityDefinition#metadata\n - api/store-devtools/DevToolsFeatureOptions#export\n - api/store-devtools/DevToolsFeatureOptions#import\n - guide/component/push#combining-multiple-observables\n - guide/component/push#comparison-with-async-pipe\n - guide/component/push#included-features\n - guide/component/push#push-pipe\n - guide/component/push#usage\n - https://github.com/ngrx/platform/edit/main/projects/ngrx.io/content/guide/component/push.md?message=docs%3A%20describe%20your%20change...\n-->"
55
}

generated/navigation.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -807,12 +807,12 @@
807807
"prerelease": [
808808
"local"
809809
],
810-
"build": "sha.c24cb334",
810+
"build": "sha.e2cca61a",
811811
"version": "19.0.0-local",
812812
"codeName": "snapshot",
813813
"isSnapshot": true,
814-
"full": "19.0.0-local+sha.c24cb334",
814+
"full": "19.0.0-local+sha.e2cca61a",
815815
"branch": "master",
816-
"commitSHA": "c24cb334cc0538fde904300c6e8ac4ead6cacb52"
816+
"commitSHA": "e2cca61aee3364c5c572c2e5506f263fa749be34"
817817
}
818818
}
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)