Using ngSrc correctly in frontend

This commit is contained in:
Rob Harrington
2016-05-13 12:29:06 +10:00
parent 564c1a3650
commit abc906186e
3 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@
-# / TODO: Rob - need popover, use will's directive or this? http://pineconellc.github.io/angular-foundation/
-#
.about-container.pad-top
%img.enterprise-logo{"ng-src" => "::enterprise.logo", "ng-if" => "::enterprise.logo"}
%img.enterprise-logo{"ng-src" => "{{::enterprise.logo}}", "ng-if" => "::enterprise.logo"}
%p.text-small{"ng-bind-html" => "::enterprise.long_description"}
.small-12.large-4.columns
%ng-include{src: "'partials/contact.html'"}

View File

@@ -10,4 +10,4 @@
%span{"ng-bind" => "::enterprise.name"}
.small-12.medium-5.large-4.columns.text-right.small-only-text-left
%p{"ng-bind" => "::[enterprise.address.city, enterprise.address.state_name] | printArray"}
%img.hero-img{"ng-src" => "::enterprise.promo_image"}
%img.hero-img{"ng-src" => "{{::enterprise.promo_image}}"}

View File

@@ -1,7 +1,7 @@
.product-thumb
%a{"ng-click" => "triggerProductModal()"}
%i.ofn-i_057-expand
%img{"ng-src" => "::product.primaryImageOrMissing", "ng-click" => "triggerProductModal()"}
%img{"ng-src" => "{{::product.primaryImageOrMissing}}", "ng-click" => "triggerProductModal()"}
.row.summary
.small-10.medium-10.large-11.columns.summary-header