Angular function 2 similar to Toggle Jquery

-2

I need to do something similar to jQuery's toggle on a FAQ page.
If the user clicks the question then display the answer below, if I click hide again .. however, we are using angle 2 and I saw that there are several classes / functions that deal with animations, but I could not understand / implement I found any examples that do this ... (I am beginner in angular ..)
A sample site that implements toggle: link

Could anyone help me by implementing an example of toggle using angular 2? ( link )

    
asked by anonymous 20.06.2017 / 19:44

1 answer

0

Why not use simple HTML5 only?

<details>
  <summary>Em que site estou?</summary>
  <p>Está no Stack Overflow em Português</p>
</details>
    
20.06.2017 / 20:13