How to disable audio when routing/component is not used anymore?

Discussão em 'Angular' iniciado por user30464808, Maio 6, 2025.

  1. user30464808

    user30464808 Guest

    iam new to Angular and Iam building a portfolio site where I showcase my projects. The problem is, that one project is a canvas game with audio.

    When I switch back the routing to back to '', the audio is still playing from the demo path.

    Is there a way to disable the audio coming from the component when not displayed?

    I want to call a function that stops all audios from the component/path befor.

    Continue reading...

Compartilhe esta Página