Switching to Angular 2 by Minko Gechev
Author:Minko Gechev [Gechev, Minko]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2016-03-29T22:00:00+00:00
Note
In order to get platform independent reference to a DOM element, again, we can use @ContentChildren and @ViewChildren. For instance, if we have the following template: <input #todo> we can get a reference to the input by using: @ViewChild('todo').
Since we are already familiar with the core differences between view children and content children now, we can continue with our tabs implementation.
In the tabs component, instead of using the @ContentChild decorator, we use @ContentChildren. We do this because we have multiple content children and we want to get them all:
@ContentChildren(TabTitle) tabTitles: QueryList<TabTitle>; @ContentChildren(TabContent) tabContents: QueryList<TabContent>;
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.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7785)
Grails in Action by Glen Smith Peter Ledbrook(7699)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(6587)
Azure Containers Explained by Wesley Haakman & Richard Hooper(6575)
Running Windows Containers on AWS by Marcio Morales(6107)
Kotlin in Action by Dmitry Jemerov(5068)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(4929)
Combating Crime on the Dark Web by Nearchos Nearchou(4508)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4416)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4358)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4181)
The Age of Surveillance Capitalism by Shoshana Zuboff(3959)
Python for Security and Networking - Third Edition by José Manuel Ortega(3752)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3510)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3416)
Mastering Python for Networking and Security by José Manuel Ortega(3346)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3335)
Blockchain Basics by Daniel Drescher(3301)
Learn Wireshark by Lisa Bock(3282)
