On Fri, Aug 14, 2015 at 4:40 PM, Micael Pedrosa <
micael...@gmail.com> 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/