Because the context of this is lost in the callback. Use arrow functions in typescript to preserve the context!
calSvc.getMonthBlock(12, 2015, 1, this.deptId).then((response) => {
})
Because the context of this is lost in the callback. Use arrow functions in typescript to preserve the context!
calSvc.getMonthBlock(12, 2015, 1, this.deptId).then((response) => {
})