you can get it through angular $ timeout, which waits until angular completes the loop and displays the elements
controller
var app = angular.module('myapp', []); app.controller('MainCtrl', ['$scope', '$window', '$timeout', function($scope, $window, $timeout) { $scope.memId = $window.memId; $scope.getMember = function(id) { $timeout(function() { console.log(document.querySelector('#audio-' + id)) }); }; }]);
source share