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

Error when used with ionic

hilarl opened this issue · comments

I am using this with ionic and getting the following errors:

Error: [$compile:nonassign] Expression 'undefined' in attribute 'options' used with directive 'fullPage' is non-assignable!

TypeError: Cannot set property 'afterRender' of undefined
at sanatizeOptions (angular-fullpage.js:59)
at rebuild (angular-fullpage.js:45)
at Scope.$digest (ionic.bundle.js:30239)
at Scope.$apply (ionic.bundle.js:30503)
at done (ionic.bundle.js:24824)
at completeRequest (ionic.bundle.js:25022)
at XMLHttpRequest.requestLoaded (ionic.bundle.js:24963)

Error: [$compile:nonassign] Expression 'undefined' in attribute 'options' used with directive 'fullPage' is non-assignable!
http://errors.angularjs.org/1.5.3/$compile/nonassign?p0=undefined&p1=options&p2=fullPage
at ionic.bundle.js:13438
at parentSet (ionic.bundle.js:23054)
at parentValueWatch (ionic.bundle.js:23067)
at regularInterceptedExpression (ionic.bundle.js:28789)
at Scope.$digest (ionic.bundle.js:30230)
at Scope.$apply (ionic.bundle.js:30503)
at done (ionic.bundle.js:24824)
at completeRequest (ionic.bundle.js:25022)
at XMLHttpRequest.requestLoaded (ionic.bundle.js:24963)(anonymous function) @ ionic.bundle.js:26794(anonymous function) @ ionic.bundle.js:23507$digest @ ionic.bundle.js:30257$apply @ ionic.bundle.js:30503done @ ionic.bundle.js:24824completeRequest @ ionic.bundle.js:25022requestLoaded @ ionic.bundle.js:24963

Anybody else had this issue?

I'm also having a problem with Ionic, but having a different stacktrace:

TypeError: cssClasses.indexOf is not a function
    at jQuery.jqLite.addClass [as _addClass] (ionic-angular.js:241)
    at jQuery.addClass (jquery.easings.min.js:6)
    at addVerticalNavigation (jquery.fullPage.js:776)
    at prepareDom (jquery.fullPage.js:639)
    at init (jquery.fullPage.js:503)
    at jQuery.$.fn.fullpage (jquery.fullPage.js:488)
    at u (angular-fullpage.min.js:1)
    at Scope.$digest (angular.js:16228)
    at Scope.$apply (angular.js:16492)
    at done (angular.js:10872)

thats a different problem, and it looks like its an issue with fullpage.js itself

it seems at some point fullpage sends a function instead of a string when checking the cssClasses. I added a pull request to ionic bower repo, so it checks for this kind of behavior: ionic-team/ionic-bower#39