Tuesday 12 April 2016

Ng-style-Inline-Background-image == Use ng-Directive

To set background image for div in INLINE:
===========================================

<div ng-style="{'background': 'url({{images.logo}})'}"> </div>

Error:1
=======

In Ng inline style not appear in IE browser. So use ng-style instead of style.

Error:2
=======
ng-style="{background: url({{images.logo}})}"  is ERROR

use ' (quote) to use css 'key':'value'.

 ng-style="{'background': 'url({{images.logo}})'}">



SOLN + Additional Value:
========================

Use ng-hreg instead of href while using dynamic value.

<a ng-href="{{URL.path}}">ANCHOR LINK </a>

To avoid cross browser and IE related error. Use ng-directives.

No comments:

Post a Comment