title: Importing AngularJS Into Typescript as AMD
body: <p>I am trying to follow the <a href="https://github.com/abogartz/typescript-amd-gulp-example" rel="noreferrer">tutorial</a> on github to stup a build process for typescript and angularjs.  I have to be honest I am really struggling.  I took the project from github and added angularjs to the bower file, the typings and the lib directory with the angular.ts file (following how JQuery was setup):</p>
  
  <pre><code>/// &lt;reference path="../typings/tsd.d.ts"/&gt;
  
  var angular= angular;
  export = angular;
  </code></pre>
  
  <p>Unfortunately, when I attempt the following I have no luck in getting my app module registered:</p>
  
  <pre><code>import JQuery = require("../lib/JQuery");
  import angular = require("../lib/angular");
  
  class A{
    public add(number1:number, number2:number):number{
      return number1+number2;
    }
  
    public colorBG():void{
      var app = angular.module('myapp',[]);
      $("body").css({"background-color":"black"})
    }
  }
  
  export = A;
  </code></pre>
  
  <p>I am seeing conflicting information online about this being type of import for angular not being possible as an AMD but the definitely typed typing file has it exported as an AMD so what gives?  The gulp build process completes successfully but the call to angular.module complains it is not a function in the chrome console.  Is there a trick to getting angular into typescript so I can concatenate one output file for my html?  I have tried requirejs for AMD, tsify/browserify for commonjs and I cannot get either to work.  Thanks in advance for any guidance.</p>