Pleaseeeeee help! Permission is not defined

Please help! i have installed Angual -permision through bower.json ,in my index.html i have pasted ,but i have a following error Permision is not defined!

its my code

var app = angular.module('ICaffee', ['ionic','satellizer','permission'])

.run(function($ionicPlatform ){
  $ionicPlatform.ready(function() {
   
    // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if (window.cordova && window.cordova.plugins.Keyboard) {
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
      cordova.plugins.Keyboard.disableScroll(true);

    }
    if (window.StatusBar) {
      // org.apache.cordova.statusbar required
      StatusBar.styleDefault();
    }
  });
  Permission.defineRole('anonymous', function (stateParams) {
        // If the returned value is *truthy* then the user has the role, otherwise they don't
        // var User = JSON.parse(localStorage.getItem('user')); 
        // console.log("anonymous ", $auth.isAuthenticated()); 
        if (!$auth.isAuthenticated()) {
          return true; // Is anonymous
        }
        return false;
      }).defineRole('isloggedin', function (stateParams) {
        // If the returned value is *truthy* then the user has the role, otherwise they don't
        // console.log("isloggedin ", $auth.isAuthenticated()); 
        if ($auth.isAuthenticated()) {
          return true; // Is loggedin
        }
        return false;
      });
  
})

I’m having the same issue. Did you ever solve this?