Service with a Signal in Angular

Loading

Reading Time: 5 minutes Introduction In this blog post, I would like to convert “Service with a Subject” to “Service with a Signal ” and expose signals only. It is made possible by calling toSignal to convert Observable to signal. Then, I can pass signal values to Angular components to display data. After using signal values directly in the … Read more

How to convert HTTP Response from Observable to Angular signal with toSignal

Loading

Reading Time: 6 minutes Introduction I extended my Pokemon application to call an API to retrieve a Pokemon by id. The HTTP request returned an Observable that required ngIf and async pipe to resolve in order to render the results in inline template. In this blog post, I want to demonstrate how to convert HTTP response to Signal with … Read more