Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <select class="chooseWatchlist" (change)="updateWatchlistTable(item.name)">
  2. <option *ngFor="let item of _items">{{ item.name }}</option>
  3. </select>
  4.  
  5. private updateWatchlistTable(name) {
  6. this.http.get('http://localhost:8080/api/points/getValue/' + name)
  7. .subscribe(res => this._watchlistElements = res.json());
  8. console.log(name);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement