From c67cd2678dc3f77feff4996c1349bb281babdc3b Mon Sep 17 00:00:00 2001 From: Alejandro Date: Tue, 21 Nov 2023 19:07:35 +0100 Subject: [PATCH] docs: remove extra parenthesis in multiple examples and extra backtick (#53098) PR Close #53098 --- adev/src/content/guide/signals/overview.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/adev/src/content/guide/signals/overview.md b/adev/src/content/guide/signals/overview.md index c4b61b7016c..ec800adb612 100644 --- a/adev/src/content/guide/signals/overview.md +++ b/adev/src/content/guide/signals/overview.md @@ -135,7 +135,7 @@ export class EffectiveCounterComponent { constructor() { // Register a new effect. effect(() => { - console.log(`The count is: ${this.count()})`); + console.log(`The count is: ${this.count()}`); }); } } @@ -149,7 +149,7 @@ export class EffectiveCounterComponent { readonly count = signal(0); private loggingEffect = effect(() => { - console.log(`The count is: ${this.count()})`); + console.log(`The count is: ${this.count()}`); }); } ``` @@ -164,7 +164,7 @@ export class EffectiveCounterComponent { initializeLogging(): void { effect(() => { - console.log(`The count is: ${this.count()})`); + console.log(`The count is: ${this.count()}`); }, {injector: this.injector}); } } @@ -205,7 +205,7 @@ For example, suppose that when `currentUser` changes, the value of a `counter` s ```ts effect(() => { - console.log(`User set to `${currentUser()}` and the counter is ${counter()}`); + console.log(`User set to ${currentUser()} and the counter is ${counter()}`); }); ``` @@ -215,7 +215,7 @@ You can prevent a signal read from being tracked by calling its getter with `unt ```ts effect(() => { - console.log(`User set to `${currentUser()}` and the counter is ${untracked(counter)}`); + console.log(`User set to ${currentUser()} and the counter is ${untracked(counter)}`); }); ```