A typical import statement goes like this:
import {HelpService} from '../../help.service'
If I autowire HelpService
in the constructor, I get an existing instance of HelpService
. However, if I import it like this:
import {HelpService} from '../../help.service.js'
Now, I receive a brand new instance of the service instead of an existing one. Why is this happening?