style not working for innerhtml in Angular 2 Typescript : <p>I am passing html as innerHtml to my view. The below is my view</p>

<pre><code>&lt;div [innerHTML]="someHtmlCode"&gt;&lt;/div&gt;
</code></pre>

<p>if I pass the below code, it is working fine.</p>

<pre><code>this.someHtmlCode = "&lt;div&gt;&lt;b&gt;This is my HTML.&lt;/b&gt;&lt;/div&gt;"
</code></pre>

<p>if I pass the below code which contain color, it is not working.</p>

<pre><code> this.someHtmlCode = '&lt;div style="background-color: blue;"&gt;&lt;b&gt;This is my HTML.&lt;/b&gt;&lt;/div&gt;';
</code></pre>
