title: Can an angular 2 component be used with an attribute selector?
body: <p>We currently have an existing small Angular 1 project that is used in an on premises Sharepoint 2013 environment. For a large part of our content, we use publishing pages on the Sharepoint environment.</p>
  
  <p>With Angular 1, we could define directives to be restricted to: <em>match attribute name, tag name, comments, or class name</em>. Most of the directives we created were attribute or tag name. The preference would have been tag name, but the publishing platform on Sharepoint strips out <strong>unknown</strong> elements. So that means we were left with using attributes in order to bring our directives in to the publishing pages. With Angular 2 though, I've only seen components implemented by tag name.</p>
  
  <p>Is it possible with Angular 2 to use attribute names in order to use our components? This is a requirement for us because of the restrictions in the Sharepoint publishing platform.</p>
  
  <p>Thanks.</p>