title: Detect if user stop typing Angular 2
body: <p>I'm trying to create something like isTyping or not, so I have to detect when user stop type more or less 3 seconds, so I can do my stuff, I allready detected when he's typing using this :</p>
  
  <pre><code>     ngOnChanges(searchValue: string) {
      if (!this.searchChangeObserver) {
        Observable.create(observer =&gt; {
          this.searchChangeObserver = observer;
        }).debounceTime(3000) 
          .subscribe((data) =&gt; {
            if (data) {
              typingStuff();
            }
            else {
              notTypingStuff();
            }
          });
        this.searchChangeObserver.next(searchValue);
      }
    }
  }
  </code></pre>
  
  <p>So now I have to detect when user stops typing to do the notTypingStuff();</p>
  
  <p>Is there a simple way to do it? </p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I'm also using this :</p>
  
  <pre><code>constructor(){
      this.modelChanged
        .debounceTime(300)
        .subscribe((data) =&gt; {
          if (data) {
            typingStuff();
          }
          else {
            notTypingStuff();
          }
        });
  }
  </code></pre>
  
  <p>But should know when user stops to type in 3 seconds to do the <code>notTypingStuff()</code> as well.. </p>