aliok / ion-affix

Affix elements for Ionic framework
MIT License
83 stars 29 forks source link

Cloning of transcluded elements fail #8

Open zoltan-papp opened 9 years ago

zoltan-papp commented 9 years ago

Hi @aliok! First of all, thanks for that awesome plugin! I found a fancy issue, since you are using $compile on a cloned element, ngTransclude will fail. e.g: ion-toggle http://codepen.io/zoltan_papp/pen/dovGVo?editors=101 I am trying to solve it, but any help would be appreciated! ;) Cheers!

nahanil commented 9 years ago

Heya!

I think I may have run into a similar issue as yourself. Seems using ng-bind rather than {{someMustaches}} might fix it? http://codepen.io/anon/pen/pJPZJz

Looks like the ion-toggle is actually doing its job, but the "Affixed stuff true/false" isn't being updated because when it's compiled it becomes a static string and the data binding is lost.

zoltan-papp commented 9 years ago

Hi there! Unfortunately that seems only a partial solution for me. :( If you open the console, you can see that it's still crying about ngTransclude.

zoltan-papp commented 9 years ago

@texh @aliok Please review https://github.com/aliok/ion-affix/pull/9

aliok commented 9 years ago

This project is not maintained anymore. We cancelled our free-time hobby project with Ionic because of too much changed recently in our personal lives and we don't have enough time at all.

I would be happy to reference anyone who would fork the project and maintain it.