-
Notifications
You must be signed in to change notification settings - Fork 6.7k
fix(carousel): re-enable deprecated directives #4527
Conversation
expect($log.warn.calls.count()).toBe(2); | ||
expect($log.warn.calls.argsFor(0)).toEqual(['slide is now deprecated. Use uib-slide instead.']); | ||
expect($log.warn.calls.count()).toBe(3); | ||
expect($log.warn.calls.argsFor(1)).toEqual(['slide is now deprecated. Use uib-slide instead.']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check all messages.
2fd509c
to
86ed220
Compare
Added other checks as noted |
👍 |
Just wondering why this PR was created. Is it to resolve some issues? It should reference those issues, if that's the case, to track the reason for the change. |
@chrisirhc We are prefixing all the directives. There were a slip, and in the carousel, the deprecated directives were empty. They need to be fully functional. This PR puts back the functionality on those deprecated directives. This shouldn't be a |
$log.warn('CarouselController is now deprecated. Use UibCarouselController instead.'); | ||
} | ||
|
||
angular.extend(this, $controller('UibCarouselController', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of extending this
, you can probably return the $controller('Uib…
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Foxandxss mind if I just patch this in all of the components?
- Re-implement deprecated directives - Re-expose `CarouselController` with deprecation notice
86ed220
to
3c8f22e
Compare
CarouselController
with deprecation notice