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

Commit 2871346

Browse files
committed
feat(carousel): add model binding support to slide
- Add support for binding slide model to slide
1 parent 575eb85 commit 2871346

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: src/carousel/carousel.js

+1
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ function CarouselDemoCtrl($scope) {
316316
},
317317
scope: {
318318
active: '=?',
319+
actual: '=?',
319320
index: '=?'
320321
},
321322
link: function (scope, element, attrs, carouselCtrl) {

Diff for: src/carousel/docs/README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ The carousel also offers support for touchscreen devices in the form of swiping.
44

55
Use a `<carousel>` element with `<slide>` elements inside it. It will automatically cycle through the slides at a given rate, and a current-index variable will be kept in sync with the currently visible slide.
66

7-
Use the `no-wrap` attribute on a `<carousel>` element to control the looping of slides; setting `no-wrap` to an expression which evaluates to a truthy value will prevent looping
7+
Use the `no-wrap` attribute on a `<carousel>` element to control the looping of slides; setting `no-wrap` to an expression which evaluates to a truthy value will prevent looping.
88

9-
Use the `template-url` attribute on a `<carousel>` or `<slide>` element to specify the url of a custom template to override the default templates
9+
Use the `template-url` attribute on a `<carousel>` or `<slide>` element to specify the url of a custom template to override the default templates.
10+
11+
Use the `actual` attribute on a `<slide>` element to bind the slide model (or any object of interest) onto the slide directive's `$scope`, which makes it available for customization in the carousel template.

0 commit comments

Comments
 (0)