Answers for "mock activatedroute with observable"

0

mock activatedroute with observable

import { of } from 'rxjs';

...
{
  provide: ActivatedRoute,
  useValue: {
    params: of({
      bookId: 2,
    }),
  },
},
Posted by: Guest on July-27-2021

Browse Popular Code Answers by Language