i am new to this, so i will try to explain as good as i can.i have a object with array property like this:
.factory('NewOrderData', function () {
var order = {
personList: []
};
return order;
})
when i try to call the property with this function.
this.ageCalc = function (person) {
var currentYear = person;
return currentYear;
}
I get this on the browser: [{"firstname":"Paul", "birthday":"1990-01-01"}]
I want to access only birthday. I've tried to put a dot after person like this person.birthday , but then the field is just empty
Can sameone help?