Angular.js constants issue?
<p>I'm slightly confused, I'm following this tutorial to try and get autheictaion to work. <a href="https://devdactic.com/user-auth-angularjs-ionic/" rel="nofollow">https://devdactic.com/user-auth-angularjs-ionic/</a></p>

<p>I'm stuck on the first stage</p>

<p>This is my app.js </p>

<pre><code>// create main module, adding dependencies for ionic, angular router, angular  mock and apps own modules

var jailbreak = angular.module('jailbreak', ['ionic', 'ui.router', 'map', 'chat', 'constant'])

jailbreak.run(function(AUTH_EVENTS) {
  document.getElementById('debug').innerHTML = JSON.stringify(AUTH_EVENTS);
})
</code></pre>

<p>Then this is my constants.js</p>

<pre><code>angular
  .module('constant', [])
  .constant('AUTH_EVENTS', {
    notAuthenticated: 'auth-not-authenticated',
    notAuthorized: 'auth-not-authorized'
  })
  .constant('USER_ROLES', {
    admin: 'admin_role',
    public: 'public_role'
  });
</code></pre>