In this example, We are using Class
type directive for showing page header. We have a directive with name pageHeader
and we are using “restrict: 'C',” which mean this is an Class
type directive. We can use this class anywhere with the HTML class attribute in any html element. Example:<div class="page-header"></div>
See example below: