How to load adal.js in webpack inside Angular 2 (Azure-AD)
<p>Inside my NG2 project, if I write:</p>

<pre><code>import adal from 'adal-angular'; 
</code></pre>

<p>it gives me 'adal is undefined'.  Why is that?</p>

<p>I want to use adal.js inside my angular 2 project. <br>
I already have run</p>

<pre><code>npm install adal-angular --save
npm install @types/adal --save
</code></pre>

<p>Then, inside my component.ts file, if I do:</p>

<p>import adal from 'adal-angular';</p>

<p>adal is undefined. </p>

<p><strong>How can I import it correctly inside my component.ts file, and also use the typings</strong>?</p>