October 2017
Intermediate to advanced
280 pages
6h 50m
English
Now, let's use the pipe that we developed. The application that we will implement provides a text input and a button with the Get Avatar label to the user. Once the user enters a value in the text input and clicks on the button, the avatar corresponding to the GitHub user will appear below the text input, as shown in the following screenshot:

Now, let's develop a sample component, which will allow us to enter the GitHub user's handle:
// ch8/statful_pipe/app.ts @Component({ selector: 'app', template: ` <input type="text" #input> <button (click)="setUsername(input.value)">Get Avatar</button> ` }) class App { username: ...Read now
Unlock full access