Skip to content
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

Support for ng-class attribute #73

Closed
mpellerin42 opened this issue Feb 26, 2016 · 1 comment
Closed

Support for ng-class attribute #73

mpellerin42 opened this issue Feb 26, 2016 · 1 comment

Comments

@mpellerin42
Copy link

Hi,

currently, using ng-class on the dropdown doesn't work because it is internally used. It result in something like that :
<div ng-class="{'am-input-error': configurator.dealerErrors.Dealer} {'disabled': dropdownDisabled}" ...>

Do you think it would be possible to add support for ng-class, or to add an attribute allowing us to add css class dynamically depending a variable ?
It should be very nice to error management.

Thanks

@jseppi
Copy link
Owner

jseppi commented Feb 26, 2016

There's actually not a great way to do this in angular. See this discussion: angular/angular.js#5695

Perhaps the easiest solution for you would be to wrap the dropdown directive in another <div> and use your ng-class there.

@jseppi jseppi closed this as completed Feb 29, 2016
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