Manuel Conde
Jul 11, 2024

--

Hi Philip.

Maybe I didn't get the point, but you complicated this a little bit, manipulating styles directly in the DOM.

A better and easier way to use a spinner with signals is, simply, with and @if (isLoading()) in the HTML file. In this way, you will not need effect, nor 'display' styles, and you will get rid of 50% of that code.

--

--

Responses (1)