I'm trying to create a application with angular 2,i have an <a> tag and using ("click") event.I want when an component rendering finished my a tag trigger click using jquery.But not working !
here is my .HTML code :
<a href="" id="all_m" ('click')="test($event)"></a>
in my another component : export class inside_group_page implements OnInit{
ngOnInit(){
jQuery("#all_m").trigger("click");
}