From f0a129ada44d61bcfb7d01f075ca5df041b701c0 Mon Sep 17 00:00:00 2001 From: Tasos Bekos Date: Tue, 24 Dec 2013 23:36:08 +0100 Subject: [PATCH] fix(alert): use interpolation for type attribute Closes #1460 BREAKING CHANGE: Use interpolation for type attribute. Before: ```html ``` or ```html ``` After: ```html ``` or ```html ``` --- src/alert/alert.js | 2 +- src/alert/docs/demo.html | 2 +- src/alert/test/alert.spec.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/alert/alert.js b/src/alert/alert.js index e21b0cb889..658878b691 100644 --- a/src/alert/alert.js +++ b/src/alert/alert.js @@ -12,7 +12,7 @@ angular.module('ui.bootstrap.alert', []) transclude:true, replace:true, scope: { - type: '=', + type: '@', close: '&' } }; diff --git a/src/alert/docs/demo.html b/src/alert/docs/demo.html index 0e3b6d23d5..ec314447d4 100644 --- a/src/alert/docs/demo.html +++ b/src/alert/docs/demo.html @@ -1,4 +1,4 @@
- {{alert.msg}} + {{alert.msg}}
diff --git a/src/alert/test/alert.spec.js b/src/alert/test/alert.spec.js index 7155b36036..4d2aba7ef0 100644 --- a/src/alert/test/alert.spec.js +++ b/src/alert/test/alert.spec.js @@ -13,7 +13,7 @@ describe('alert', function () { element = angular.element( '
' + - '{{alert.msg}}' + '' + '
'); @@ -88,7 +88,7 @@ describe('alert', function () { }); it('should be possible to add additional classes for alert', function () { - var element = $compile('Default alert!')(scope); + var element = $compile('Default alert!')(scope); scope.$digest(); expect(element).toHaveClass('alert-block'); expect(element).toHaveClass('alert-info');