@angular/common/testing

provideLocationMocks

function

Returns mock providers for the Location and LocationStrategy classes. The mocks are helpful in tests to fire simulated location events.

Jump to details