<div ng-if=“type”>

<div ng-if="error" class="alert alert-danger">
  <p>The requested type could not be found.</p>
</div>
<type-placeholder type="type" template="main" details="type.attributes"></type-placeholder>

</div>