In this example, We are using Html Attribute
type directive for showing page header. We have a directive with name pageHeader
. In this directive we are using “restrict: 'A',” which mean this is an Html attribute
type directive. We can use this element anywhere on html elements as Html attribute
. Example: < div page-header> See below example: