Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @View({
- template: `
- <input #input (keyup)="artistSearch($event, input.value)" type="text">
- `
- })
- export class Search {
- artistSearch($event, name) {
- setTimeout(() => {
- this.service.artistSearch(name)
- .subscribe((data) => {
- this.artists = data.response.artists;
- });
- }, 400);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement