Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 5e6613a

Browse files
Paolo Milanipkozlowski-opensource
Paolo Milani
authored andcommitted
feat(*): loosen restrict from E to EA for accordion, alert, pagination, tabs, tooltip
1 parent bc73159 commit 5e6613a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/accordion/accordion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ angular.module('ui.bootstrap.accordion').controller('AccordionController', ['$sc
3838
// and adds an accordion CSS class to itself element.
3939
angular.module('ui.bootstrap.accordion').directive('accordion', function () {
4040
return {
41-
restrict:'E',
41+
restrict:'EA',
4242
controller:'AccordionController',
4343
transclude: true,
4444
replace: false,
@@ -50,7 +50,7 @@ angular.module('ui.bootstrap.accordion').directive('accordion', function () {
5050
angular.module('ui.bootstrap.accordion').directive('accordionGroup', ['$parse', '$transition', '$timeout', function($parse, $transition, $timeout) {
5151
return {
5252
require:'^accordion', // We need this directive to be inside an accordion
53-
restrict:'E', // It will be an element
53+
restrict:'EA',
5454
transclude:true, // It transcludes the contents of the directive into the template
5555
replace: true, // The element containing the directive will be replaced with the template
5656
templateUrl:'template/accordion/accordion-group.html',

src/alert/alert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
angular.module("ui.bootstrap.alert", []).directive('alert', function () {
22
return {
3-
restrict:'E',
3+
restrict:'EA',
44
templateUrl:'template/alert/alert.html',
55
transclude:true,
66
scope:{

src/pagination/pagination.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ angular.module('ui.bootstrap.pagination', [])
22

33
.directive('pagination', function() {
44
return {
5-
restrict: 'E',
5+
restrict: 'EA',
66
scope: {
77
numPages: '=',
88
currentPage: '=',

src/tabs/tabs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ angular.module('ui.bootstrap.tabs', [])
2727
}])
2828
.directive('tabs', function() {
2929
return {
30-
restrict: 'E',
30+
restrict: 'EA',
3131
transclude: true,
3232
scope: {},
3333
controller: 'TabsController',
@@ -38,7 +38,7 @@ angular.module('ui.bootstrap.tabs', [])
3838
.directive('pane', function() {
3939
return {
4040
require: '^tabs',
41-
restrict: 'E',
41+
restrict: 'EA',
4242
transclude: true,
4343
scope:{
4444
heading:'@'

src/tooltip/tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
angular.module( 'ui.bootstrap.tooltip', [] )
77
.directive( 'tooltipPopup', function () {
88
return {
9-
restrict: 'E',
9+
restrict: 'EA',
1010
replace: true,
1111
scope: { tooltipTitle: '@', placement: '@', animation: '&', isOpen: '&' },
1212
templateUrl: 'template/tooltip/tooltip-popup.html'

0 commit comments

Comments
 (0)