ons-scope

This component is available with angular1 bindings only.

All child elements using the “var” attribute will be attached to the scope of this element.

Usage


<ons-list>
  <ons-list-item ons-scope ng-repeat="item in items">
    <ons-carousel var="carousel">
      <ons-carousel-item ng-click="carousel.next()">
        {{ item }}
      </ons-carousel-item>
      </ons-carousel-item ng-click="carousel.prev()">
        ...
      </ons-carousel-item>
    </ons-carousel>
  </ons-list-item>
</ons-list>

Need Help?

If you have any questions, use our Community Forum or talk to us on Discord chat. The Onsen UI team and your peers in the community will work together to help solve your issues.

For bug reports and feature requests use our GitHub Issues page.