We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d05820 commit 26df978Copy full SHA for 26df978
1820EN_10_Code/01_alert_directive/app.js
@@ -7,7 +7,7 @@ angular.module('app', ['alert-directive'])
7
];
8
9
$scope.addAlert = function() {
10
- $scope.alerts.push({type: 'warning', msg: "Watch out - another alert!"});
+ $scope.alerts.push({msg: "Watch out - another alert!"});
11
};
12
13
$scope.closeAlert = function(index) {
1820EN_10_Code/01_alert_directive/directive.js
@@ -5,7 +5,7 @@ angular.module("alert-directive", [])
5
restrict:'EA',
6
replace: true,
template:
- '<div class="alert alert-block" ng-class="\'alert-\' + type">' +
+ '<div class="alert alert-block alert-{{type || \'info\'}}">' +
'<button type="button" class="close" ng-click="close()">×</button>' +
'<div ng-transclude></div>' +
'</div>',
0 commit comments