Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add two examples for Repetition docs #73

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/repetition.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ next-page: substitution

# Repetition

http://montagejs.github.io/mfiddle/#!/7764259

The repetition iterates through its `content` property rendering the content originally inside the repetition's own element for each object.

http://montagejs.github.io/mfiddle/#!/7765238

This `content` property can be set directly with a typical array for simple repeating. However, the repetition has expanded capabilities when working in tandem with a `RangeController` assigned to its `contentController` property, in lieu of populating the `content` property manually.

Repetitions expose a special bindable property `objectAtCurrentIteration` intended for use by repeated components to reach the object within the `content` property related to that iteration.
Expand Down