January 2019
Intermediate to advanced
240 pages
5h 59m
English
This chapter covers
TestMetaData to configure TestBedIn this chapter, you’ll learn how to test directives. Directives, like components, are a way to encapsulate parts of your application as reusable chunks of code. With regard to functionality, both directives and components allow you to add behavior to the HTML in your application.
For example, let’s say your application has a table, and you want to change the background color of a row when the pointer hovers over it. You could create a directive named HighlightRowDirective that adds that row highlighting behavior and reuse it throughout your project.
Before you ...
Read now
Unlock full access