title: How do I add properties to ng.Iscope?
body: <p>I'm accessing a scope like so:</p>
  
  <pre><code>  let element = angular.element(document.getElementsByClassName('active'));
    let scope = element.scope();
  </code></pre>
  
  <p>And my scope object looks like this when I do a</p>
  
  <pre><code>console.log(scope);
  </code></pre>
  
  <blockquote>
    <p><code>$id:2017
    $parent:ChildScope
    $root:Scope
    __private__:Object
    index:0
    match:Object
    __proto__:Object</code></p>
  </blockquote>
  
  <p>However when I try to do:</p>
  
  <pre><code>console.log(scope.match);
  </code></pre>
  
  <p>Typescript gives a syntax error:</p>
  
  <blockquote>
    <p>(27,34): error TS2339: Property 'match' does not exist on type 'IScope'.</p>
  </blockquote>
  
  <p>And printing out scope.$id works</p>
  
  <pre><code>console.log(scope.$id);
  </code></pre>
  
  <p>I know it has something to do $id being defined in the docs so that works. <a href="http://definitelytyped.org/docs/angularjs--angular-route/interfaces/ng.iscope.html" rel="nofollow noreferrer">http://definitelytyped.org/docs/angularjs--angular-route/interfaces/ng.iscope.html</a></p>
  
  <p>How would I print out my member variable <code>scope.match</code> without getting a Typescript error?  I think I would need to extend ng.IScope?  </p>