src/app/components/alert-danger/alert-danger.js
/**
* @author Martin Micunda {@link http://martinmicunda.com}
* @copyright Copyright (c) 2015, Martin Micunda
* @license GPL-3.0
*/
'use strict';
import {View, Component} from '../../ng-decorators'; // jshint unused: false
//start-non-standard
@Component({
selector: 'alert-danger'
})
@View({
template: `
<div ng-if="vm.hasError" class="row">
<div class="col-md-12 col-sm-12">
<div class="alert alert-danger animated fadeIn">
<h4 class="mb0 display-inline-block"><i class="fa fa-exclamation-circle"></i> Error!</h4>
<p class="display-inline"> {{vm.errorMessage}}</p>
</div>
</div>
</div>
`,
bindToController: {
hasError: '=',
errorMessage: '='
}
})
//end-non-standard
class AlertDanger {}