ractive.add()

edit this page

Increments the selected keypath.

ractive.add( keypath[, number ])

Returns a Promise (see Promises)

keypath String

The keypath of the number we're incrementing, e.g. count

number

Defaults to 1. The number to increment by