When there is two different ng-controller one with a Dialog component and the other controller to open the dialog explicitly. To open the Dialog from other controller, we need to use ‘ng-include’ directive, ‘$includeContentLoaded’ event and ‘$broadcast’ service.
In the above sample, we have 2 controllers separately and initiated control from controller by referring the external resource. Find the sample from the below,
This page will automatically be redirected to the sign-in page in 10 seconds.