Skip to content

not working with ng-class #32

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
repalogic opened this issue Oct 27, 2015 · 2 comments
Closed

not working with ng-class #32

repalogic opened this issue Oct 27, 2015 · 2 comments

Comments

@repalogic
Copy link

I used ui-scroll for li elements, which are also annotated with ng-class. Then the ng-class is not correctly evaluated.

 <li ui-scroll="elm in datasource" ng-class="{'selected-elm': isSelected(elm)}"></li>

If the ng-class is used in a sub element, everything works as expected

  <li ui-scroll="elm in datasource">
       <div ng-class="{'selected-elm': isSelected(elm)}">
       </div>
  </li>
@mfeingold
Copy link
Contributor

@dhilt is this the same issue you opened a bug report with angular team?

@dhilt
Copy link
Member

dhilt commented Oct 28, 2015

@repalogic Here is the demo with ng-class for ui-scroll: http://jsfiddle.net/dhilt/ypdbmrt8/
So I can't reproduce the issue. Could you share your demo?

@mfeingold It was another story angular/angular.js#12813, but some correlations are possible...

@dhilt dhilt closed this as completed Nov 11, 2015
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

3 participants