Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <div style="{{backgroundImage}}">
  2.  
  3. backgroundImage: Ember.computed('background-image', function() {
  4. var imageUrl = this.item.attributes.imageMain.url;
  5. return Ember.String.htmlSafe('background-image: url('+ imageUrl +')');
  6. })
  7.  
  8. WARNING: Binding style attributes may introduce cross-site scripting vulnerabilities; please ensure that values being bound are properly escaped. For more information, including how to disable this warning, see http://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement