Angular 4: Pocket Primer (Pocket Primer Series) by Oswald Campesato
Author:Oswald Campesato [Campesato, Oswald]
Language: eng
Format: azw3
Publisher: Mercury Learning and Information
Published: 2017-06-27T04:00:00+00:00
LISTING 5.9: user.component.ts
The contents of Listing 5.9 are straightforward: there is a User class comprising the fields fname and lname for the first name and last name, respectively, for each new user.
Finally, we need to update the contents of app.module.ts, as shown in Listing 5.10, where the modified contents are shown in bold.
LISTING 5.10: app.module.ts
As you can see, Listing 5.10 contains two new import statements so that the custom components MyPipe and User can be referenced in the declarations property.
Launch the application and after a few moments you will see the following in a browser session:
Complete List of Users:
Jane-Smith
John-Stone
Dave-Jones
Rick-Heard
Filtered List of Users:
Jane-Smith
John-Stone
Figure 5.2 displays the output from launching this Angular application and filtering based on the users whose first name starts with the capital letter J.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12587)
Hello! Python by Anthony Briggs(9924)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9800)
The Mikado Method by Ola Ellnestam Daniel Brolund(9784)
Dependency Injection in .NET by Mark Seemann(9347)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8309)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7770)
Grails in Action by Glen Smith Peter Ledbrook(7704)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7566)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7141)
Microservices with Go by Alexander Shuiskov(6904)
Practical Design Patterns for Java Developers by Miroslav Wengner(6820)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6761)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6423)
Angular Projects - Third Edition by Aristeidis Bampakos(6179)
The Art of Crafting User Stories by The Art of Crafting User Stories(5701)
NetSuite for Consultants - Second Edition by Peter Ries(5631)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5444)
Kotlin in Action by Dmitry Jemerov(5073)
