In this example, we are creating a directive and will use that in multiple controller and pass the page-title value from different controller. See the example: