5
Creating Dynamic Angular Components
When we are creating components, the flexibility and reusability of those components should be top priorities. You don’t want unnecessary dependencies inside your component and want to ensure the component can serve as many scenarios as possible without becoming overcomplicated.
This chapter will teach you how to create truly dynamic UI components using content projection, template references, and template outlets. We will learn how to dynamically render components using the component outlet directive and the view container reference.
By the end of this chapter, you will know when and how to project content into UI components, effectively use templates inside your components, and output code in different ...
Get Effective Angular now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.