Closed yogieputra8 closed 8 years ago
So, here is my app structure using yeoman:
I have cred.json inside app/json folder. In my scripts/controller/about.js, I want to access those local json. My code to access it:
$http.get('cred.json').success(function(data){ console.log(data); });
But I've got the error message:
How to solve this issue?
'json/cred.json'
So, here is my app structure using yeoman:
I have cred.json inside app/json folder. In my scripts/controller/about.js, I want to access those local json. My code to access it:
But I've got the error message:
How to solve this issue?