Closed jon9090 closed 2 years ago
effects
Is it possible to use it in angular without inheritance?
Here my suggestion:
@Injectable({ providedIn: 'root' }) export class TodosEffects { addTodo = createEffect((actions) => actions.pipe( ofType(addTodo), tap(console.log) ) ); } @Component({ ... providers: [TodoEffects] }) export class Component { constructor(private todosEffects: TodoEffects) {} addTodo() { this.todosEffects.addTodo(); } }
see in description
n/a
Yes
What about the cleaning?
Which @ngneat/effects-* package(s) are relevant/releated to the feature request?
effects
Description
Is it possible to use it in angular without inheritance?
Here my suggestion:
Proposed solution
see in description
Alternatives considered
n/a
Do you want to create a pull request?
Yes