I am trying to load properties file from angular controller, But I am not getting values instead of values I am getting undefined. For that I am using the below code.
$http.get('Validation.properties').then(function (response) {
console.log('TestString is ', response.data.TestString);
console.log('BooleanValue is ', response.data.BooleanValue);
});
And my properties file is like
{ "TestString": "Read value from file", "BooleanValue": false }
output is:
TestString is undefined
BooleanValue is undefined
console.log('TestString is ', response.data);