so have template angular 2 , template uses jquery components "works". well.. when page resized fire jquery function re-design sidebar adding items of top navbar using "clone()" method of jquery. this:
... code ommited ... $navbar = $('nav').find('.navbar-collapse').first().clone(true); ... more code ommited...
this works well, clone items of navbar on sidebar. problem button have on sidebar logout system. code:
<a class="text-danger link-pointer" (click)="dologout()"> <i class="pe-7s-power"></i> cerrar sesiĆ³n </a>
as can see, use (click) binding call method of class. problem is: when jquery clone occours cloned, without binding. link broken. can't use [routerlink] binding because need execute code before redirect user logout page.
any idea this? lot.
Comments
Post a Comment