hellsan631 / angular-fullpage.js

An angular directive for fullpage.js

Home Page:http://hellsan631.github.io/angular-fullpage.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't override all options

ahmed-zekry opened this issue · 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