Hi Jo,

Please don't try to solve it like this. in this case jQuery is not the 
solution. Have a look at the @viewChild, try something like this:

import {Component, Viewchild} from 'angular2/core';
import {Observable} from 'rxjs/Rx';

    selector: 'my-app',
    template: `
            <input #myInput id="search" type="text" class="form-control" 
placeholder="Search for artists">
export class AppComponent {
    @Viewchild('myInput') myInput

    ngOnInit() {
        var keyups = Observable.fromEvent(myInput, "keyup");
        keyups.subscribe(data => console.log(data));

(typed up in here, so it might not work the first time around, but it 
should get you going!)


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.

Reply via email to