I would like to get dynamically the width of the div.progress-bar from the ng-click.
My function move($event) on the element div.progress-bar returns the event with the element div.progress-bar. But when I click on div.time which is inside div.progress-bar, it returns the event with the element div.time.
I just want the width of the progress-bar even I click on his children.
HTML :
<div class="progress-bar" ng-click="move($event)">
<div class="time" ng-style="{'width': (current_track.time_current / current_track.time_total * 100) + '%'}"></div>
</div>
CONTROLLER :
$scope.move = function(e) {
console.log(e);
console.log(e.srcElement.offsetWidth);
var widthOfProgressBar = e.srcElement.offsetWidth;
/* ... */
};