I'm trying to access a DOM element after it gets rendered by AngularJS.
In my template I've this div:
<ion-view view-title="MAP" name="tab-map">
<ion-content has-tabs="true" style="text-align:center;">
<div style="width:100%;height:400px;" ng-attr-id="{{'canvas_map_'+place.id}}" class="map"></div>
</ion-content>
</ion-view>
So, in template's controller I'm trying to get its new id:
var mapId = document.querySelector('.map').id;
console.log("Map id: "+mapId);
But unfortunatelly I'm receiving pre-render code: {{'canvas_map_'+place.id}} and I want to get the rendered id name that is "canvas_map_2"... Somebody can help me?