Closed Gi972 closed 7 years ago
Hello,
How do you write this this.subscription = this.context.state$.map(selector).subscribe(::this.setState);
this.subscription = this.context.state$.map(selector).subscribe(::this.setState);
but without the :: ?
Thanks
Using arrow function expression.
this.subscription = this.context.state$.map(selector).subscribe((s) => this.setState(s));
Hello,
How do you write this
this.subscription = this.context.state$.map(selector).subscribe(::this.setState);
but without the :: ?
Thanks