In angular from ts file not getting the data