title: AngularUI modal custom scope
body: <p>I wanted to define a custom scope for the modal (I don't want to use dependency injection for reasons) I am using in my project, but I'm getting an error whenever I define a scope in <code>$modal.open</code>. Here is the plunk I created from the example on AngularUI's website: <a href="http://plnkr.co/edit/rbtbpyqG7L39q1qYdHns" rel="nofollow">http://plnkr.co/edit/rbtbpyqG7L39q1qYdHns</a></p>
  
  <p>I tried debugging and saw that <code>(modalOptions.scope || $rootScope)</code> returns <code>true</code> with a custom scope and since <code>true</code> (obviously) doesn't have a <code>$new()</code> function defined, an exception is thrown.</p>
  
  <p>Any thoughts?</p>