@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.

  
    function provideLocationMocks(  ): Provider[];
  
  
Jump to details