OK (probably because it's a reserved word), maybe this should be a good place for an exception (translating [class] to class-name property binding) ?
I'm doing some integration tests with angular2 and materializecss. Because of this I also need to build some directives to support "data-tooltip" and other attributes used by materialize. Is there any simple way to add properties to a DOM node, and be recognized by angular? On Friday, August 14, 2015 at 3:40:33 PM UTC+1, Micael Pedrosa wrote: > > I'm testing Angular 2 (2.0.0-alpha.34), and I'm getting a lot of these > kind of errors. > Like for example, this should work > on template: > <ul [class]="classTypes" ...> > on class > classTypes = "collapsible popout"; > > 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" > -- 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.
