Good work, nice directive which works as a charm and does its job as it should, nothing more, nothing less!
As a possible enhancement suggestion:
An option for automatically moving to the bottom of the scrollable content when updated would be nice, for usual cases where new data is just appended to it (e.g. the typical todo list).
Just having the same two lines as for the start option copied to the refresh() method seems to do the trick for me. (Well, it does cause the scrollbar to be briefly displayed, but that might be a convenient visual feedback to notice the view update). I also wonder if there are alternatives to the interval (1s) between checks for changes.
Good work, nice directive which works as a charm and does its job as it should, nothing more, nothing less!
As a possible enhancement suggestion: An option for automatically moving to the bottom of the scrollable content when updated would be nice, for usual cases where new data is just appended to it (e.g. the typical todo list).
Just having the same two lines as for the start option copied to the refresh() method seems to do the trick for me. (Well, it does cause the scrollbar to be briefly displayed, but that might be a convenient visual feedback to notice the view update). I also wonder if there are alternatives to the interval (1s) between checks for changes.