
<div ng-if="vm.version==='drupal-8'" class="node node--type-{{node.type[0].target_id}} node--view-mode-teaser clearfix" id="node-{{ node | nid }}" data-nid="{{ node | nid }}"  data-uuid="{{ node.uuid[0].value }}" data-version="{{ vm.version }}">
    <h3 class="title" >{{ node.title[0].value }}</h3>
    <div class="content">
        <div ng-if="node.field_iframe && node.type[0].value =='iframe'" class="field--name-field-iframe field-iframe"><iframe ng-src="{{node.field_iframe[0]['uri'] | trustAsSrc }}" width="{{ node.field_width[0]['value'] }}" height="{{ node.field_height[0]['value'] }}" frameborder="0" style="visibility:hidden;" onload="this.style.visibility='visible';" allowtransparency=”true”></iframe></div>
        <div ng-repeat="(key, value) in node._embedded">
              <div ng-if="key.indexOf('field_image') > -1">
                    <div class="field--name-field-image field-image"><img class="field-field_image" alt="image" ng-src="{{ value[0]['uri'][0].value | drupalImage:'medium' }}" /></div>
              </div>
        </div>
    </div>
</div>

<div ng-if="vm.version==='drupal-7'" class="node node--type-{{ node.type }} node--view-mode-teaser clearfix" id="node-{{ node.nid }}" data-nid="{{ node.nid }}">
    <div class="field-thumbnail field-name-field-thumbnail" ng-repeat="field in node.field_thumbnail['und']"><img class="field-field_image" alt="" ng-src="{{ field['uri'] | drupalImage }}" width="{{ field['width'] }}" height="{{ field['height'] }}" /></div>
    <h5 class="title" >{{ node.title }}</h5>
    <div class="content">
        <div class="field-image field-name-field-field-image"><img ng-src="{{  node.field_image['und'][0]['uri'] | drupalImage:'medium' }}" /></div>
    </div>
</div>