Well, this is what I get if I use ng-style="organCover":
<header class="orgWall" ng-style="organCover"></header>
It didn't translate organCover into the line of code that I hoped for, nor
did it add the background-image to element.style{} css.
It's always kind of painful when situation happens like this and you have
no clue.
On Monday, January 6, 2014 2:21:06 AM UTC-5, Sander Elias wrote:
>
> Hi Allen,
>
> Have a look at this
> <http://plnkr.co/edit/0kFL0jmawNCiN35R3Hzv?p=preview>plunk, it works as it
> should.
> you have used ng-style="{{organCover}}" this means that your expression
> is translated into the
> string {'background-image': \"url('
> http://localhost/dooleystand/ci/public/images/organs/2/profile_pic.jpg'
> )\"}
>
> as documented ng-style needs an object, not a string.
>
> so this should work for you: <header class="orgWall"
> ng-style="organCover"></header>
>
> regards
> Sander
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.