On Fri, Aug 14, 2015 at 4:40 PM, Micael Pedrosa <[email protected]> wrote: > But returns: "Can't bind to 'class' since it isn't a known property of the > '<ul>' element and there are no matching directives with a corresponding > property"
Right, this is correct, since by default ng2 is binding to HTML element properties and there is no "class" property, there is only "class" attibute. There is a "className" property so if you want to change this, you might want to do: <ul [class-name]="classTypes" ...> Are you following any particular example / doc or just trying things out? Cheers, Pawel -- AngularJS book: http://www.packtpub.com/angularjs-web-application-development/book Looking for bootstrap-based widget library for AngularJS? http://angular-ui.github.com/bootstrap/ -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
