I'm new to angularJS and I'm trying to load a xml file. The problem seems to be the file path. I am loading it inside a controller about.controller.js. Looks like this. (I am using Jade)
'use strict';
angular
.module('app')
.controller('AboutController', AboutController);
AboutController.$inject = ['$scope'];
function AboutController ($scope, $http)
{
$scope.text = 'This could be a dynamic text - About Text';
$http.get('/data/dataStructure.xml')
.then(function(res){
$scope.todos = res.data;
});
}
This is what my file structure looks like. How do I navigate now from one to the dataStructure.xml-file inside the data folder?

EDIT:
I have actually tested and the $http-variable is undefined (when logging to console). So there may be the issue. How do I need to setup the controller to include http as an input?