From 69f7aa8740da32523dcfe7ae40b118e713dc149f Mon Sep 17 00:00:00 2001 From: liuyunwei <827600210@qq.com> Date: Wed, 15 Nov 2017 18:27:49 +0800 Subject: [PATCH] update the "input" event's plucking, event.target.value=> event.data --- doc/tutorial/basics.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/tutorial/basics.md b/doc/tutorial/basics.md index feef9ee5ab..79de506a61 100644 --- a/doc/tutorial/basics.md +++ b/doc/tutorial/basics.md @@ -96,14 +96,14 @@ input.pluck('target', 'value') .subscribe(value => console.log(value)); // "h" // Pass the two previous values -input.pluck('target', 'value').pairwise() +input.pluck('data').pairwise() .subscribe(value => console.log(value)); // ["h", "e"] // Only pass unique values through -input.pluck('target', 'value').distinct() - .subscribe(value => console.log(value)); // "helo wrd" +input.pluck('data').distinct() + .subscribe(value => console.log(value)); // "h", "e", "l", "o", " ", "w", "r", "d" // Do not pass repeating values through -input.pluck('target', 'value').distinctUntilChanged() - .subscribe(value => console.log(value)); // "helo world" +input.pluck('data').distinctUntilChanged() + .subscribe(value => console.log(value)); // "h", "e", "l", "o", " ", "w", "o", "r", "l", "d" ```