<a ng-if="$root.elementManager.canReplace(element)" ng-click="$root.$broadcast('addElement', {elem: element, action: 'replace' })" title="Replace {{ element.name }} with"><i class="fas mgz-fa-sync-alt"></i> <span>Replace with</span></a>