Skip to content

Commit

Permalink
docs: added computedFrom docs
Browse files Browse the repository at this point in the history
  • Loading branch information
eneajaho committed Sep 13, 2023
1 parent d068eda commit e8442b0
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
],
Expand Down
4 changes: 4 additions & 0 deletions docs/src/content/docs/utilities/computed-from.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 8 additions & 0 deletions docs/src/content/docs/utilities/connect.md
Original file line number Diff line number Diff line change
@@ -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.
8 changes: 8 additions & 0 deletions docs/src/content/docs/utilities/inject-destroy.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit e8442b0

Please sign in to comment.