Commit
C
restrictions to avoid conflicts
Fixes #2156 Closes #2170 BREAKING CHANGE: Both `dropdown` and `dropdown-toggle` are only attribute directives Before: ```html <button class="dropdown-toggle" ...> ``` After: ```html <button class="dropdown-toggle" dropdown-toggle ...> ```
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,7 +114,6 @@ angular.module('ui.bootstrap.dropdown', []) | |
|
||
.directive('dropdown', function() { | ||
return { | ||
restrict: 'CA', | ||
controller: 'DropdownController', | ||
link: function(scope, element, attrs, dropdownCtrl) { | ||
dropdownCtrl.init( element ); | ||
|
@@ -124,7 +123,6 @@ angular.module('ui.bootstrap.dropdown', []) | |
|
||
.directive('dropdownToggle', function() { | ||
return { | ||
restrict: 'CA', | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
chrisirhc
Contributor
|
||
require: '?^dropdown', | ||
link: function(scope, element, attrs, dropdownCtrl) { | ||
if ( !dropdownCtrl ) { | ||
|
This update is not working, as you see you removed the A as well.