-
Notifications
You must be signed in to change notification settings - Fork 2k
How to load multiple json files #1772
Comments
It's a little difficult to follow what you're trying to accomplish here without proper markdown formatting. However, from what I can tell, whichever JSON I have two suggestions.. First, you should try to avoid using My second suggestion would be to load your JSON files on the server-side and then use API endpoints to return them to the client. If you must have these files existing on the client-side then your idea of using |
Hi mleanos and thank you for your answer, I followed your advice:
But I get the same result both files are loaded but only the second file is displayed. As for the json files they exist on the client. |
@Abdou00 Its quite simple, the request which gets executed last would override the
|
Thanks for your help guys I understood my mistake and am going through a server route. |
I started on meanjs and wanted to know how to call several json files? Here is the code I wrote:
'use
strict';
angular.module('core').controller('HomeController', ['$scope', '$http', 'Authentication', 'leafletData', function ($scope, $http, Authentication, leafletData) {
$scope.authentication = Authentication;
Problem when I execute this code there is only the second file that is loading. Would anyone have an idea of what's wrong ??
The text was updated successfully, but these errors were encountered: