hellsan631 / angular-fullpage.js

An angular directive for fullpage.js
http://hellsan631.github.io/angular-fullpage.js/
82 stars 31 forks source link

Error when used with ionic #20

Open hilarl opened 8 years ago

hilarl commented 8 years ago

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?

ezaelbello commented 7 years ago

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)
hellsan631 commented 7 years ago

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

ezaelbello commented 7 years ago

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: https://github.com/driftyco/ionic-bower/pull/39