Being new to this, I am trying to retrieve the value of projhours from this directory in console.log() without encountering a syntax error. While right-clicking on the projhours directory in the Chrome console displays ($object[""0""].projhours), AngularJS does not seem to accept ["0"], so how can I display ONLY the projhours value in console.log()? (which should be 41222)
The code snippet below illustrates what happens when I type console.log() for the variable containing getlist.
var test = Restangular.allUrl('category/categoryNonProductiveTasks')
.getList({weekFrom: vm.weekStart.slice(0, 2), weekTo: vm.weekEnd.slice(0, 2), year: vm.selectedYear})
console.log(test)