Reputation: 4293
What on Earth is happening here. No console output inside this service function of mine. Any one had this issue before?
test(){
console.log('TESTING???')
console.log('TESTING???')
return 'HALOOOOOOO??'
}
Calling the function
console.log('Before Test')
console.log(this.emergencyService.test())
console.log('After Test')
Output
Some more info.
Upvotes: 2
Views: 1077
Reputation: 148
It's returning the value of the method. If instead of console.log(this.emergencyService.test())
you add this.emergencyService.test()
, what does it show? It returns the two console.log()
, no?
Upvotes: 1