From e8442b01d4707ceb830ac04ed2ae2c7af4b668de Mon Sep 17 00:00:00 2001 From: Enea Jahollari Date: Wed, 13 Sep 2023 20:30:15 +0200 Subject: [PATCH] docs: added computedFrom docs --- docs/astro.config.mjs | 8 ++++++++ docs/src/content/docs/utilities/computed-from.md | 4 ++++ docs/src/content/docs/utilities/connect.md | 8 ++++++++ docs/src/content/docs/utilities/inject-destroy.md | 8 ++++++++ 4 files changed, 28 insertions(+) create mode 100644 docs/src/content/docs/utilities/connect.md create mode 100644 docs/src/content/docs/utilities/inject-destroy.md diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 57d256d5..329bcb98 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -31,6 +31,14 @@ export default defineConfig({ label: 'computedFrom', link: '/utilities/computed-from', }, + { + label: 'injectDestroy', + link: '/utilities/inject-destroy', + }, + { + label: 'connect', + link: '/utilities/connect', + }, { label: 'repeat', link: '/utilities/repeat' }, { label: 'resize', link: '/utilities/resize' }, ], diff --git a/docs/src/content/docs/utilities/computed-from.md b/docs/src/content/docs/utilities/computed-from.md index 2bf24b2e..a91ec77b 100644 --- a/docs/src/content/docs/utilities/computed-from.md +++ b/docs/src/content/docs/utilities/computed-from.md @@ -12,6 +12,10 @@ It is similar to `combineLatest`, but it also takes `Signals` into consideration import { computedFrom } from 'ngxtension/computed-from'; ``` +:::tip[Inside story of the function] +Read more here: [A sweet spot between signals and observables 🍬](https://itnext.io/a-sweet-spot-between-signals-and-observables-a3c9620768f1) +::: + ## Usage `computedFrom` accepts an array or object of `Observable`s or `Signal`s and returns a `Signal` that emits the combined value of the `Observable`s or `Signal`s. diff --git a/docs/src/content/docs/utilities/connect.md b/docs/src/content/docs/utilities/connect.md new file mode 100644 index 00000000..63d95ce7 --- /dev/null +++ b/docs/src/content/docs/utilities/connect.md @@ -0,0 +1,8 @@ +--- +title: connect +description: ngxtension/connect +--- + +WIP + +Link to [connect](https://github.com/nartc/ngxtension-platform/blob/main/libs/ngxtension/connect/src/connect.ts) source code. diff --git a/docs/src/content/docs/utilities/inject-destroy.md b/docs/src/content/docs/utilities/inject-destroy.md new file mode 100644 index 00000000..a72efed0 --- /dev/null +++ b/docs/src/content/docs/utilities/inject-destroy.md @@ -0,0 +1,8 @@ +--- +title: injectDestroy +description: ngxtension/inject-destroy +--- + +WIP + +Link to [injectDestroy](https://github.com/nartc/ngxtension-platform/blob/main/libs/ngxtension/inject-destroy/src/inject-destroy.ts) source code.