Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49185

Ion-slider via ng-repeat with starting point as a param

$
0
0

@Smirnova wrote:

I have a slider with ng-repeat (looped). And I want it to show the first slider according to the user input (from the prev view).

For example, if the user chose "veges", then the first slide will show tomato, and if the user chose "fruits", then the slider will start from apple. But slider should always contain all veges and fruits.

var items = [
// veges
{
family: 'vege',
name: 'tomato'
},
{
family: 'vege',
name: 'potato',
},
// fruits
{
family: 'fruits',
name: 'apple'
},
{
family: 'fruits',
name: 'banana',
}];

Any ideas how to do that?

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49185

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>