title: uibModalInstance as an Optional Service
body: <p>I have a situation that needs to use uibModalInstance  as an optional injector.
  Because I need to use the same controller for two views. One is the popup view and other is normal view. When am using the popup it's working fine.  In another case, it's throwing an unknown injector Error.</p>
  
  <p>Can any one help one this issue.</p>
  
  <p>Regards,
  Kiran Gopal</p>