Could someone please help. I am sooo new to Angular 2 and I have been taking a Udemy.com class to learn the language. The author explained how to create an Observable and demonstrated with the code that I have pasted below. Note: I had to install jqurey, via the NPM ie: npm install jquery and the sample app that I have been using already has rxjs installed. I can run the app without any errors and the text box appears but nothing happens in my console window when I type in the text box. It's suppose to log the even.
Can someone please help. I would appreaciate any help. I am major lost with this example. Thanks in advance. import {Component} from 'angular2/core'; import {Observable} from 'rxjs/Rx'; @Component({ selector: 'my-app', template: ` <input id="search" type="text" class="form-control" placeholder="Search for artists"> ` }) export class AppComponent { constructor(){ var keyups = Observable.fromEvent($("#search"), "keyup"); keyups.subscribe(data => console.log(data)); } } -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.