Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore(docs): add all Markdown files to docs app #1436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 109 commits into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
22c2669
docs: move eslint rules to docs app
ChristopherPHolder Oct 12, 2022
865e882
docs: transclude eslint readme to docs app
ChristopherPHolder Oct 12, 2022
bc90f59
docs: add auto gen index to eslint rules
ChristopherPHolder Oct 12, 2022
e87f16a
docs: transclude template readme to docs app
ChristopherPHolder Oct 12, 2022
e492bc3
docs: move template api reference to docs app
ChristopherPHolder Oct 12, 2022
e68fa88
docs: replace api overview for autogen index
ChristopherPHolder Oct 12, 2022
9f0fde7
docs: move experimental template api to docs app
ChristopherPHolder Oct 12, 2022
1dba2c8
docs: move template concepts docs to docs app
ChristopherPHolder Oct 12, 2022
eeec2ef
docs: edit perf-issues markdown syntax for headers
ChristopherPHolder Oct 12, 2022
5e3afab
docs: transluted cdk readme to docs app
ChristopherPHolder Oct 12, 2022
693db5e
docs: transluted cdk sub modules to docs app
ChristopherPHolder Oct 12, 2022
b0c73c2
docs: move coalecing docs to docs app
ChristopherPHolder Oct 12, 2022
eff7768
docs: move coercing docs to docs app
ChristopherPHolder Oct 12, 2022
bd8ad69
docs: move cdk render strategies docs to docs app
ChristopherPHolder Oct 12, 2022
cdfbf68
docs: move cdk notifications docs to docs app
ChristopherPHolder Oct 12, 2022
d7e356c
docs: move zone configurations docs to docs app
ChristopherPHolder Oct 12, 2022
42bc66e
docs: move cdk zone less docs to docs app
ChristopherPHolder Oct 12, 2022
166bd74
docs: change sidebar title for cdk sub modules
ChristopherPHolder Oct 12, 2022
2654f93
docs: transclude state readme to docs app
ChristopherPHolder Oct 12, 2022
b020cdf
docs: move state docs to docs app
ChristopherPHolder Oct 12, 2022
d3ad35b
docs: transclude contributing to docs app
ChristopherPHolder Oct 12, 2022
7cac6f7
docs: list transcluded Markdown files as implicit Nx dependencies for…
ChristopherPHolder Oct 12, 2022
dd38433
chore: configure formatting for MDX files
LayZeeDK Oct 12, 2022
dcd4328
chore: organize path mappings
LayZeeDK Oct 12, 2022
69bb4e6
docs: format category configurations
LayZeeDK Oct 12, 2022
bfbe5f4
docs: format MDX documents
LayZeeDK Oct 12, 2022
8bfddc5
docs: format Markdown documents
LayZeeDK Oct 12, 2022
392608c
docs: change transclution varibles to camalCase
ChristopherPHolder Oct 12, 2022
4c27219
docs: add description and link to explain transclusion
ChristopherPHolder Oct 12, 2022
5dd7ac8
docs: move terminology docs into concepts path
ChristopherPHolder Oct 12, 2022
3562e1a
docs: position api link in sidebar as last item
ChristopherPHolder Oct 12, 2022
ad035c4
docs: remove generated index for template api
ChristopherPHolder Oct 12, 2022
d816ab7
docs: simplify sidebar section linking
ChristopherPHolder Oct 12, 2022
49ad56e
docs: correct path to implicitedependicy
ChristopherPHolder Oct 12, 2022
26d451f
docs: correct Markdown document outlines
LayZeeDK Oct 13, 2022
b5beb8a
docs: add missing footer links to docs app
ChristopherPHolder Oct 13, 2022
9d6d837
docs: fix footer links to path
ChristopherPHolder Oct 13, 2022
6fdbde3
docs: add missing header nav links to docs app
ChristopherPHolder Oct 13, 2022
1323526
docs: fix header nav links to path
ChristopherPHolder Oct 13, 2022
c2679b2
docs: add template link to landing page packeges
ChristopherPHolder Oct 13, 2022
58ea926
docs: fix Markdown video link
ChristopherPHolder Oct 13, 2022
26f2fa3
docs: fix Markdown video link
ChristopherPHolder Oct 13, 2022
16413e2
docs: change template MD links to website links
ChristopherPHolder Oct 13, 2022
af4faa7
docs: remove sub modules nav hierarchy
ChristopherPHolder Oct 13, 2022
908654c
docs: change eslint MD links to website links
ChristopherPHolder Oct 13, 2022
26a6386
docs: change cdk/template Readme.md to README.md
ChristopherPHolder Oct 13, 2022
bf57334
docs: change template links to relative file paths
ChristopherPHolder Oct 13, 2022
c056fb8
docs: change libs/cdk MD link to website
ChristopherPHolder Oct 13, 2022
20edc28
docs: change demos app MD links to website
ChristopherPHolder Oct 13, 2022
b92a7d9
docs: change cdk docs links to relative file paths
ChristopherPHolder Oct 13, 2022
ea92b75
docs: change state docs links to relative paths
ChristopherPHolder Oct 13, 2022
3799db1
docs: change main readme links to website docs
ChristopherPHolder Oct 14, 2022
50afe5b
docs: revert sidebar order to default alphabetical
ChristopherPHolder Oct 14, 2022
fcb684a
docs: sort docs footer links alphabetically
ChristopherPHolder Oct 14, 2022
90a5881
docs: sort docs header nav links alphabetically
ChristopherPHolder Oct 14, 2022
a364c74
docs: transclude state submodules to docs app
ChristopherPHolder Oct 14, 2022
50b777c
docs: change state readme links to website docs
ChristopherPHolder Oct 14, 2022
9147078
docs: change state readme links to website docs
ChristopherPHolder Oct 14, 2022
a42cf41
docs: change links in libs docs to point to web docs
ChristopherPHolder Oct 14, 2022
c6fb658
docs: change file name from Readme.md to README.md
ChristopherPHolder Oct 14, 2022
2f266bb
docs: add state transcluded files to inplicit dependencies
ChristopherPHolder Oct 14, 2022
374b9ea
docs: remove state getting started section
ChristopherPHolder Oct 14, 2022
4132b37
docs: fix state testing docs link
ChristopherPHolder Oct 14, 2022
76681d0
docs: add state api index to docs
ChristopherPHolder Oct 14, 2022
f438eb9
docs: change links to point to web docs
ChristopherPHolder Oct 14, 2022
cc8ace1
docs: add template api index to docs app
ChristopherPHolder Oct 14, 2022
1ccd690
docs: change api docs link to web docs index
ChristopherPHolder Oct 14, 2022
8d125ca
docs: move rx-for out of experimental
ChristopherPHolder Oct 14, 2022
2d02ed6
docs: remove experiment emoji from unpatch directive
ChristopherPHolder Oct 14, 2022
54d50ae
docs: adjust API reference slugs
LayZeeDK Oct 14, 2022
4c9bbb4
docs: correct API reference titles
LayZeeDK Oct 14, 2022
f46d4fb
docs: add CDK API reference page
LayZeeDK Oct 14, 2022
552862c
docs: adjust API reference slug
LayZeeDK Oct 14, 2022
ddb2865
docs: correct API reference title
LayZeeDK Oct 14, 2022
c7e4b15
docs: update API reference links
LayZeeDK Oct 14, 2022
dbb8fd8
docs: restructure and simplify CDK navigation
LayZeeDK Oct 14, 2022
c314435
docs: simplify State and Template navigation configuration
LayZeeDK Oct 14, 2022
c679f10
docs: restructure and simplify render strategies navigation
LayZeeDK Oct 14, 2022
cedeaba
docs: adjust ESLint rules reference slug
LayZeeDK Oct 14, 2022
8523a5c
docs: fix Markdown image embeds
LayZeeDK Oct 14, 2022
39c9461
docs: update documentation links
LayZeeDK Oct 14, 2022
70f76de
docs: restructure strategies navigation
LayZeeDK Oct 14, 2022
ac08e31
docs: adjust slugs and titles
LayZeeDK Oct 14, 2022
fa60ad9
docs: update documentation links
LayZeeDK Oct 14, 2022
f916154
docs: update page titles
LayZeeDK Oct 14, 2022
52e544e
docs: update slugs
LayZeeDK Oct 14, 2022
be3cd06
docs: correct document outlines
LayZeeDK Oct 14, 2022
daa4793
docs: include state effects documentation
LayZeeDK Oct 14, 2022
1f579d7
docs: adjust API slugs
LayZeeDK Oct 14, 2022
e688e7d
docs: simplify navigation structure
LayZeeDK Oct 14, 2022
5e69b57
docs: include state selections documnetation
LayZeeDK Oct 14, 2022
22becf3
docs: simplify navigation configuration
LayZeeDK Oct 14, 2022
8c48588
docs: include state actions documentation
LayZeeDK Oct 14, 2022
ee31603
docs: organize state navigation
LayZeeDK Oct 14, 2022
65cffa1
docs: format files
LayZeeDK Oct 14, 2022
ae93388
docs: remove README file with irregular casing
LayZeeDK Oct 14, 2022
01676c4
chore: trim trailing whitespace from Markdown documents
LayZeeDK Oct 14, 2022
5a8fc1a
docs: correct document outlines
LayZeeDK Oct 14, 2022
b594be9
docs: update slugs
LayZeeDK Oct 14, 2022
bd24279
docs: format files
LayZeeDK Oct 14, 2022
b0ea7a3
docs: use sentence casing for headings
LayZeeDK Oct 14, 2022
8c59bb6
docs: add link to operator
LayZeeDK Oct 14, 2022
002e158
docs: organize state API navigation
LayZeeDK Oct 15, 2022
a77792f
docs: use absolute Markdown link
LayZeeDK Oct 15, 2022
98341a8
docs: remove horizontal rule
LayZeeDK Oct 15, 2022
cc52215
docs: update feature link
LayZeeDK Oct 15, 2022
04e74da
docs: use sentence casing
LayZeeDK Oct 15, 2022
58f8944
docs: correct documentation URL
LayZeeDK Oct 15, 2022
5b67a3a
docs: use relative Markdown link
LayZeeDK Oct 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
[*.{md,mdx}]
max_line_length = off
trim_trailing_whitespace = false
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![rx-angular logo](https://raw.githubusercontent.com/rx-angular/rx-angular/main/docs/images/rx-angular_logo.png)](https://www.rx-angular.io/)
[![rx-angular logo](https://raw.githubusercontent.com/rx-angular/rx-angular/main/docs/images/rx-angular_logo.png)](https://rx-angular.io/)

# RxAngular ![rx-angular CI](https://github.com/rx-angular/rx-angular/workflows/rx-angular%20CI/badge.svg?branch=main)

Expand All @@ -7,10 +7,10 @@ performance and template rendering.

RxAngular is divided into different packages:

- [📦@rx-angular/cdk](https://github.com/rx-angular/rx-angular/tree/main/libs/cdk/README.md)
- [📦@rx-angular/eslint-plugin](https://github.com/rx-angular/rx-angular/tree/main/libs/eslint-plugin/README.md)
- [📦@rx-angular/state](https://github.com/rx-angular/rx-angular/tree/main/libs/state/README.md)
- [📦@rx-angular/template](https://github.com/rx-angular/rx-angular/tree/main/libs/template/README.md)
- [📦@rx-angular/cdk](https://rx-angular.io/docs/cdk)
- [📦@rx-angular/eslint-plugin](https://rx-angular.io/docs/eslint-plugin)
- [📦@rx-angular/state](https://rx-angular.io/docs/state)
- [📦@rx-angular/template](https://rx-angular.io/docs/template)

Used together, you get a powerful tool for developing high-performance angular applications with or without NgZone.

Expand Down Expand Up @@ -63,17 +63,17 @@ This repository holds a set of helpers to create **fully reactive** as well as *

## Packages

Find details in the linked readme files below for installation and setup instructions, examples and resources.
Find details in the links to the official docs below for installation and setup instructions, examples and resources.

- [📦@rx-angular/cdk](https://github.com/rx-angular/rx-angular/tree/main/libs/cdk/README.md) - Component Development Kit
- [📦@rx-angular/eslint-plugin](https://github.com/rx-angular/rx-angular/tree/main/libs/eslint-plugin/README.md) - ESLint Plugin
- [📦@rx-angular/state](https://github.com/rx-angular/rx-angular/tree/main/libs/state/README.md) - Imperative & Reactive Component State-Management
- [📦@rx-angular/template](https://github.com/rx-angular/rx-angular/tree/main/libs/template/README.md) - High-Performance Non-Blocking Rendering
- [📦@rx-angular/cdk](https://rx-angular.io/docs/cdk) - Component Development Kit
- [📦@rx-angular/eslint-plugin](https://rx-angular.io/docs/eslint-plugin) - ESLint Plugin
- [📦@rx-angular/state](https://rx-angular.io/docs/state) - Imperative & Reactive Component State-Management
- [📦@rx-angular/template](https://rx-angular.io/docs/template) - High-Performance Non-Blocking Rendering

## Version Compatibility

| Angular | RxJS | @rx-angular/state | @rx-angular/template | @rx-angular/cdk |
|------------------------|----------------------|-------------------|----------------------|---------------------|
| Angular | RxJS | @rx-angular/state | @rx-angular/template | @rx-angular/cdk |
| ---------------------- | -------------------- | ----------------- | -------------------- | ------------------- |
| `14` | `^7.4.0` | `> 1.4.6` | `> 1.0.0-beta.29` | `> 1.0.0-alpha.10` |
| `^12.0.0` or `^13.0.0` | `^6.5.5` or `^7.4.0` | `> 1.4.6` | `> 1.0.0-beta.29` | `> 1.0.0-alpha.10` |
| `^11.0.0` | `^6.5.5` | `<= 1.4.6` | `<= 1.0.0-beta.29` | `<= 1.0.0-alpha.10` |
Expand Down
116 changes: 61 additions & 55 deletions apps/demos/src/app/features/template/render-callback/renderCallback.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,62 @@
### Using the RenderCallback
The RenderCallback notifies users about when the `LetDirective` "rendered" the latest values of the
active template.
At the time the `rendered` callback emits, the DOM should be already updated with the latest changes connected
to this instance.
The callback will emit the latest value rendered to the template.

Since structural directives currently do not support `@Output` bindings, developers have to use other mechanics
to access this event.
Beyond the traditional approach the `LetDirectives` offers an input property as renderCallback.
This enables developers to bind a `NextObserver` (e.g. `Subject`) to the `LetDirective`which will emit after
rendering happened.

You can choose between using the [Template syntax](https://angular.io/guide/template-syntax), injecting the
`LetDirective` as `@ViewChild()` and subscribe the event manually or providing a RenderCallback on your own.

Please note that due to the built-in
[coalescing][https://github.com/rx-angular/rx-angular/blob/main/libs/template/docs/concepts.md] can cause this
callback different in situations where multiple `LetDirectives` are used to render the same
`Component`. Make sure to subscribe to every instance in your component to avoid missing render
notifications.

#### RenderCallback Input
```html
<ng-container *rxLet="content$; let content; strategy: strategyName$; renderCallback: renderCallback$">
<div class="example-box">
{{ content }}
</div>
</ng-container>
```
```ts
// inside component:
readonly renderCallback$ = new Subject<string>();
```
#### Template syntax
```html
<!-- template syntax with output binding -->
<ng-template let-content
[rxLet]="content$"
(rendered)="onTemplateRendered($event)">
<div class="example-box">
{{ content }}
</div>
</ng-template>
```
#### ViewChild
```html
<div *rxLet="content$; let content" class="example-box">
{{ content }}
</div>
```
```ts
// inside of your component
\@ViewChild(LetDirective) rxLet: LetDirective<string>;
this.rxLet.rendered.subscribe(value => console.log('afterRender', value));
```

The RenderCallback notifies users about when the `LetDirective` "rendered" the latest values of the
active template.
At the time the `rendered` callback emits, the DOM should be already updated with the latest changes connected
to this instance.
The callback will emit the latest value rendered to the template.

Since structural directives currently do not support `@Output` bindings, developers have to use other mechanics
to access this event.
Beyond the traditional approach the `LetDirectives` offers an input property as renderCallback.
This enables developers to bind a `NextObserver` (e.g. `Subject`) to the `LetDirective`which will emit after
rendering happened.

You can choose between using the [Template syntax](https://angular.io/guide/template-syntax), injecting the
`LetDirective` as `@ViewChild()` and subscribe the event manually or providing a RenderCallback on your own.

Please note that due to the built-in
[coalescing][https://rx-angular.io/docs/template/concepts] can cause this
callback different in situations where multiple `LetDirectives` are used to render the same
`Component`. Make sure to subscribe to every instance in your component to avoid missing render
notifications.

#### RenderCallback Input

```html
<ng-container
*rxLet="content$; let content; strategy: strategyName$; renderCallback: renderCallback$"
>
<div class="example-box">{{ content }}</div>
</ng-container>
```

```ts
// inside component:
readonly renderCallback$ = new Subject<string>();
```

#### Template syntax

```html
<!-- template syntax with output binding -->
<ng-template
let-content
[rxLet]="content$"
(rendered)="onTemplateRendered($event)"
>
<div class="example-box">{{ content }}</div>
</ng-template>
```

#### ViewChild

```html
<div *rxLet="content$; let content" class="example-box">{{ content }}</div>
```

```ts
// inside of your component
\@ViewChild(LetDirective) rxLet: LetDirective<string>;
this.rxLet.rendered.subscribe(value => console.log('afterRender', value));
```
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ There is a background process running in the child component. The input value fr
Furthermore, there is a refresh button. A click on it also refreshes the list data.

The topics we will discuss in this tutorial include:

- [Setting up a reactive state, selections, and UI interactions][1-setup]
- [Handling @Inputs reactively][2-input-bindings]
- [Handling @Output reactively][3-output-bindings]
Expand Down
7 changes: 1 addition & 6 deletions apps/docs/docs/cdk/_category_.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"label": "@rx-angular/cdk",
"position": 1,
"link": {
"type": "generated-index",
"description": "RxAngular CDK"
}
"label": "@rx-angular/cdk"
}
7 changes: 6 additions & 1 deletion apps/docs/docs/cdk/api/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"label": "API",
"link": null
"position": 100,
"link": {
"type": "generated-index",
"title": "API reference",
"slug": "/state/cdk"
}
}
15 changes: 15 additions & 0 deletions apps/docs/docs/cdk/cdk.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
sidebar_label: '@rx-angular/cdk'
sidebar_position: 1
title: 'CDK'
hide_title: true
---

import Readme, { toc as readmeToc } from '@site/../../libs/cdk/README.md';

<Readme />

<!-- Workaround for generating table of contents -->
<!-- See https://github.com/facebook/docusaurus/issues/3915#issuecomment-896193142 -->

export const toc = [...readmeToc];
Loading