Can an angular 2 component be used with an attribute selector?
Yes, the selector property of the @Component decorator is a CSS selector (or a subset of): selector: ‘.cool-button:not(a)’ Specifies a CSS selector that identifies this directive within a template. Supported selectors include element, [attribute], .class, and :not(). Does not support parent-child relationship selectors. Source: Angular Cheat Sheet / Directive Configuration, which @Component inherits. That way … Read more