I\'m trying to provide a resolve service via the new providedIn attribute.
providedIn
This is a translations resolver which I use in a protected module:
<
Check forwardRef() function from angular/core. It allows to refer to references which are not yet defined.
import {MyService} from './service'; constructor(@Inject(forwardRef(() => MyService)) public myService: MyService) { }