I'am working on a angular2 project, in component(html ) I have this structure:
<ul class="nav nav-list" >
                <li> 
                   <label class="tree-toggler nav-header">
                     <i class="fa fa-plus-circle" aria-hidden="true">
                        </i>Mylabel  
                   </label>
                </li>
                <ul class="nav nav-list tree">
                   <label class="groupcompte">
                     <i class="fa fa-plus-circle" aria-hidden="true">
                       </i>group_name: 
                   </label>
                   <ng-container>
                      <!-- contain of group-->
                   </ng-container>
                </ul>
</ul> 
In my component(.ts) when i try the snippet code below : which is supposed hidde content of Mylabel when clicking on but nothing happen
           $('label.tree-toggler').click(function () {
             $(this).parent().children(' ul.tree').toggle(300);
             $(this).find('i').toggleClass('fa-plus-circle fa-minus-circle')
          });
          $('label.groupcompte').click(function () {
             $(this).parent().find('tr.compte_in_groupe').toggle(300);
             $(this).find('i').toggleClass('fa-plus-circle fa-minus-circle')
          });
what I'am doing wrong?
 
     
    