Fixed the angularAMD undefined error.

Fixed the angularAMD undefined error.