ng-class on Angular 1.5 component element
<p>I'm converting some directives to components, and was trying to eliminate the extra "wrapping" element since <code>replace: true</code> doesn't work anymore. However, the old wrapping element had an ng-class on it.</p>

<pre><code>&lt;some-directive&gt;
    &lt;div ng-class="{classOne: someDirectiveCtrl.isClassOne}"&gt;
        &lt;p&gt;...&lt;/p&gt;
    &lt;/div&gt;
&lt;/some-directive&gt;
</code></pre>

<p>In that example, with <code>replace: true</code>, the div becomes the "wrapping" element.</p>

<pre><code>&lt;div ng-class="{classOne: someDirectiveCtrl.isClassOne}"&gt;
     &lt;p&gt;...&lt;/p&gt;
&lt;/div&gt;
</code></pre>

<p>So...  </p>

<h3>Question</h3>

<p>Is there a way to access information in a components controller in order to add classes to the component's element?</p>

<p>ie</p>

<pre><code>&lt;some-component ng-class="{classOne: someComponentCtrl.isClassOne}"&gt;
    &lt;p&gt;...&lt;/p&gt;
&lt;/some-component&gt;
</code></pre>

<p>I'd rather not put functions for the component in the parent controller, and I'd like to have the classes listed in the HTML.</p>