I had the similar issue few days back at Angular 18.2. After creating 'assets' folder under 'public' folder it works for me. If still not working for you just run the 'ng serve' or 'ng dev' command again.
<img src="/public/assets/logo.png" alt="logo" />