defining constants in typescript (ionic application)
<p>In my Ionic application I am defining constants as </p>

<pre><code>//constants.ts
export var CONSTANTS = {
 API_ENDPOINT: 'http://localhost:3000/'
};
</code></pre>

<p>and importing it as </p>

<pre><code>import {CONSTANTS} from '../../services/constants'; //the path is correct
</code></pre>

<p>However I get the error CONSTANTS not defined in the file where I am importing.. what am i missing here ?</p>