Skip to content

Broken image inside directive #468

@9mm

Description

@9mm

Hello,

I'm using an image source dynamically inside a directive. It works fine with grunt serve, but breaks under grunt serve:dist. Is there an extra step I need to do? Sorry if this isn't the right place to put this, I'm not sure the best place to ask.

Thanks!

app.directive('summary', function() {
  var summaryTemplate = 
    '<div id="summary">' +
      '<h1><img ng-src="/assets/images/sidebar/{{icon}}.png" alt="icon">{{title}}</h1>' +
      '<div ng-show="active" ng-transclude class="summary-content"></div>' +
    '</div>';
    // ... more code ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions