Looking for best practices to implement the following scenario using SystemJS and Type script -
- AbstractLogger.d.ts - Should declare (export) module with some classes.
- ConsoleLogger.ts - Should "implement" AbstractLogger.
- Consumer.ts - Should reference AbstractLogger class, and use it.
Everything compiles, but where should I Inject the ConsoleLogger as the current AbstractLogger implementation? In server side code it's easy to achieve using simple DI, How it should be done here?
Tried to use the System.config (map: ...) with no luck. Is this the correct pattern, or i'm missing something here?
Thanks!