SS
@Component({ ... })
export class CartComponent {
constructor(private actions$: Actions) {}
ngOnInit() {
this.actions$.pipe(ofActionSuccessful(CartDelete)).subscribe(() => alert('Item deleted'));
}
}
Size: a a a
SS
@Component({ ... })
export class CartComponent {
constructor(private actions$: Actions) {}
ngOnInit() {
this.actions$.pipe(ofActionSuccessful(CartDelete)).subscribe(() => alert('Item deleted'));
}
}
SS
@Component({ ... })
export class CartComponent {
constructor(private actions$: Actions) {}
ngOnInit() {
this.actions$.pipe(ofActionSuccessful(CartDelete)).subscribe(() => alert('Item deleted'));
}
}
SV
AK
OS
YV
AK
OS
AK
AK
SV
AK
SS
it('should load contacts if one created', () => {
spyOn(component, 'load');
const ctx: ActionContext = {
status: ActionStatus.Successful,
action: ContactCreateAction,
};
actions.next(ctx);
expect(component.load).toHaveBeenCalled();
});
AK
AK
OD
AK
OS
С
OS