Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
v1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
salte-bot committed Dec 13, 2016
2 parents dc70318 + 551ad59 commit 296a110
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "salte-auth-angular",
"version": "1.0.7",
"version": "1.0.8",
"main": "dist/salte-auth-angular.js",
"description": "Provides OpenID Connect support to AngularJS applications through the addition of a simple configuration.",
"homepage": "https://github.com/salte-io/salte-auth-angular",
Expand Down
42 changes: 21 additions & 21 deletions tests/ngRouteApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,63 +61,63 @@ ngRouteApp.factory('TaskFactory', ['$http', function($http) {

ngRouteApp.controller('TaskCtl', ['$scope', '$location', 'salteAuthService', 'TaskFactory', 'ItemFactory', function($scope, $location, salteAuthService, TaskFactory, ItemFactory) {
$scope.taskCall = function() {
TaskFactory.getItem(5).success(function(data) {
$scope.task = data;
}).error(function(err) {
TaskFactory.getItem(5).then(function(response) {
$scope.task = response.data;
}, function(err) {
$scope.error = err;
$scope.loadingMsg = '';
});
};

$scope.itemCall = function() {
ItemFactory.getItem(13).success(function(data) {
$scope.item = data;
}).error(function(err) {
ItemFactory.getItem(13).then(function(response) {
$scope.item = response.data;
}, function(err) {
$scope.error = err;
$scope.loadingMsg = '';
});
};

$scope.taskCall2 = function() {
TaskFactory.getItem2('https://test.com/').success(function(data) {
$scope.task = data;
}).error(function(err) {
TaskFactory.getItem2('https://test.com/').then(function(response) {
$scope.task = response.data;
}, function(err) {
$scope.error = err;
$scope.loadingMsg = '';
});
};

$scope.taskCall3 = function() {
TaskFactory.getItem2('https://testapi.com/').success(function(data) {
$scope.task = data;
}).error(function(err) {
TaskFactory.getItem2('https://testapi.com/').then(function(response) {
$scope.task = response.data;
}, function(err) {
$scope.error = err;
$scope.loadingMsg = '';
});
};

$scope.taskCall4 = function() {
TaskFactory.getItem2('/someapi/item').success(function(data) {
$scope.task = data;
}).error(function(err) {
TaskFactory.getItem2('/someapi/item').then(function(response) {
$scope.task = response.data;
}, function(err) {
$scope.error = err;
$scope.loadingMsg = '';
});
};

$scope.taskCall5 = function() {
TaskFactory.getItem2('https://myapp.com/someapi/item').success(function(data) {
$scope.task = data;
}).error(function(err) {
TaskFactory.getItem2('https://myapp.com/someapi/item').then(function(response) {
$scope.task = response.data;
}, function(err) {
$scope.error = err;
$scope.loadingMsg = '';
});
};

$scope.taskCall6 = function() {
TaskFactory.getItem2('http://testwebapi.com/').success(function(data) {
$scope.task = data;
}).error(function(err) {
TaskFactory.getItem2('http://testwebapi.com/').then(function(response) {
$scope.task = response.data;
}, function(err) {
$scope.error = err;
$scope.loaingMsg = '';
});
Expand Down

0 comments on commit 296a110

Please sign in to comment.