maxaon / angular-nanoscroller

Wrapper for nanoScrollerJS
MIT License
54 stars 39 forks source link

Token '=' is unexpected #8

Open lucas-garcia opened 9 years ago

lucas-garcia commented 9 years ago

Hi,

I am trying to pass the preventPageScrolling parameter doing scrollable="{preventPageScrolling='true'}" and I am getting this error

captura de tela 2015-02-10 as 12 48 33

What is the proper way of doing it?

maxaon commented 9 years ago

Hi. You should transfere 'js object', scrollable="{preventPageScrolling:true}" With colon and without single quotes

lucas-garcia commented 9 years ago

@maxaon that's what I thought, but it doesn't seem to work. Although there are no errors, the page still scrolls (meaning the property preventPageScrolling wasn't set to true).

Interesting thing is that when doing scrollable="{preventPageScrolling='true'}" I get errors but it does work, the page is prevented from scrolling as expected.