so I have a list of books (items), each item(book) has a button for the user to download the book, what I want to do is to allow the user to know the progress of downloading the book he requested, the user can download multiple books in the same time.
my issue is how to bind the download progress for each item, if I bind to variable it will update all the items progress.
Just implement as a controller on the ion-item and then use ng-click to update the downloadProgress and bind to downloadProgress as you are doing.
Not sure why you’re trying to implement as a custom attribute directive but i wouldn’t start messing around with directives until you’ve got a very good grasp on the rest of angularjs.
But mainly you need to revise the core concepts of angularjs, the fact you are trying to call progressBarDiv.removeClass(‘hide’); is a big warning, i’ve got a video tutorial series you can follow.
No probs, i’m going to be releasing a course soon on ionic itself, signup to the newsletter on codecraftpro.com and i’ll ping you a mail once it’s ready