JKnorr91 / ion-slide-box-tabs

An Add-On directive for the ion-slide-box, that adds tabs to the slide box, known from the Android Material Design specification
MIT License
248 stars 110 forks source link

dynamic ion-slide-tab-label #13

Open didlich opened 8 years ago

didlich commented 8 years ago

is it possible to use the ion-slide-tab-label with something like this:

<ion-slide ion-slide-tab-label="Attachments ({{attachments.length}})">

the scope variable attachments is initially '0' after an request it changes i.e. to '5' for now '0' remains in the tab, but the attachments array changes

lcaprini commented 8 years ago

Hi, In my fork I create a different ion-slide-tab-label directive with HTML and AngularJS variable usable. I submit a pull request: https://github.com/lcaprini/ion-slide-box-tabs

berlog commented 7 years ago

@lcaprini @didlich it still doesn't work for me :( I have some tab with count of items (it's changed dynamically in my service) While when count updated in my view it doesn't update in tab (only after reload controller .. tab show correct count :/)