Skip to content

Instantly share code, notes, and snippets.

@pcnate
Created June 12, 2015 18:27
Show Gist options
  • Save pcnate/7025ac3d52321debbd61 to your computer and use it in GitHub Desktop.
Save pcnate/7025ac3d52321debbd61 to your computer and use it in GitHub Desktop.
<div class="col-xs-12"> <!-- floating alerts -->
<div class="row">
<div class="col-xs-12">
<div class="row" floating-alert> <!-- alert row -->
<div ng-cloak ng-repeat="alert in alerts.alerts track by $index">
<div ng-if="alert.floating == 'true'" class='col-xs-12 col-sm-12 col-md-12 col-lg-12'>
<div class='alert' ng-class="[ alert['type'] ]" role='alert'>
<button type='button' class='close' ng-click="alerts.close( $index, 'index' )" aria-label='Close'><span aria-hidden='true'>&times;</span></button>
<strong><i class="fa" ng-class="[ alert['icon'] ]"></i>&nbsp;{{ alert.message }}</strong>
</div>
</div>
</div>
</div>
</div>
</div>
</div> <!-- end floating alerts -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment