providers.ts 274 Bytes
Newer Older
1 2 3 4 5 6
import { Provider, Type } from '@angular/core';
import { SecurityEventListener } from './security-event.listener';

export function provideSecurityEventListener(impl: Type<SecurityEventListener>): Provider {
  return { provide: SecurityEventListener, useExisting: impl };
}