Skip to content

Variable Steps in ng-repeat Loop #109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nwestbury opened this issue Aug 28, 2015 · 2 comments
Closed

Variable Steps in ng-repeat Loop #109

nwestbury opened this issue Aug 28, 2015 · 2 comments

Comments

@nwestbury
Copy link

I'm an angular noob so sorry if this isn't an actual issue but rather misuse.

I need to create many sliders with different step sizes for each (varying from a small decimal number to large ints). I tried to put it in a ng-repeat loop but get a NaN when I put anything other than a hard-coded number in the step (except for start/end). When I replace att.step with "1", say it works fine.

See this behavior in this fiddle: FIDDLE.

Any suggestions or is this a bug?

@nwestbury nwestbury changed the title Variable Steps in ng-repeat loop Variable Steps in ng-repeat Loop Aug 28, 2015
@ValentinH
Copy link
Member

See #103

@nwestbury
Copy link
Author

@ValentinH Using {{}} around the step size works great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants