Skip to content

Image src attribute causes a 404 before the compilation #97

@ayamflow

Description

@ayamflow

Hello,

with a template like this:
<img src="{{image}} />

and javascript:

var vue = new Vue({
    el: '#view',
    data: {
        image: 'http://somehost.com/image.jpg'
    }
});

gives the error:

GET http://myhost.com/%7B%7Bthumb%7D%7D 404 (Not Found)

The Angular team had some issue with it, which resulted in the ngSrc directive.
NB: The same problem might happen with the href attribute, see ngHref as well.

Edit: Here comes the JSFiddle.

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