hellsan631/angular-fullpage.js

Can't override all options

ahmed-zekry opened this issue · 0 comments

I can override some options only but not all, for example i can't override the 'onLeave' option property i need to pass to it a custom function so i can get the current index and next index and direction.

when in tried this code

$scope.fullPageOptions = {
                navigation: true,
                navigationPosition: 'left',
                scrollingSpeed: 1000,
                onLeave: function (index, nextIndex, direction){
                    // do some thing with index and nextIndex here
                }
}

the onLeave property didn't work like other properties