$scope.getDegreeDetails = function() {
  if (permissions.hasPermission('view-user')) {
    $http.get('api/v1/users')
      .then(function(data) {
        $scope.userList = [];
        $scope.userList = data.data;
      }, function(data) {});
  }
};

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.5/angular.min.js