Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $http.get(first.json)
- .then(function (response) {
- $scope.firstData = response.data;
- });
- //User JSON api
- $http.get(second.json)
- .then(function (response1) {
- $scope.secondData = response1.data;
- });
- $scope.dataReceived = function (response, response1) {
- $scope.firstData = response;
- $scope.secondData = response1
- };
Advertisement
Add Comment
Please, Sign In to add comment