-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Customization of the carousel #4201
Comments
It actually is exposed, via |
A Plunker would also be very helpful - a demonstration of the failure to access here would be a good starting point. |
Issue : http://plnkr.co/edit/qwkJ84m6SB6slDxpe88s?p=preview Workarround: http://plnkr.co/edit/npMsqiGwM3eBrvAdB2oU?p=preview For explanation please take a look at the stackoverflow question : http://stackoverflow.com/questions/31981553/how-to-use-controller-scope-in-directive-template/31989387#31989387 |
I think I see now - the slides array is an array of the slide element $scope in the carousel controller. Would allowing an optional binding to the slide directive accomplish what you want then, where the binding would allow binding the actual slide object on $scope? |
Yes. Correct.This would allow the customization of the |
Alright, I'll have it implemented in the next couple of days. |
Cannot access $scope.slides object inside carousel controller to customize the carousel template. The answer in the stackoverflow explains the scenario and possible work around.
Link: http://stackoverflow.com/a/31989387/1848109
The text was updated successfully, but these errors were encountered: