1

I am trying to implement page flipping effect with turn.js in my angular application. I am encountering the following error when i try navigating to some other view in the application.

Uncaught TypeError: Cannot read property 'disabled' of undefined turn.js:1798 Uncaught TypeError: Cannot read property 'opts' of undefined turn.js:1297

I am using a directive to invoke turn js. I tried unbinding turn from dom with $("#id").unbind(). But still it is not working. Do any one have an idea on this?

user2633915
  • 47
  • 1
  • 10

1 Answers1

1

I've discovered that the opts being undefined is merely from loading turn.js on a page that doesn't have anything to instantiate the plugin on.

bentedder
  • 796
  • 6
  • 21