R
R
RaDir2017-03-23 08:48:40
BEM
RaDir, 2017-03-23 08:48:40

Why doesn't the src attribute of the image block work in the project-stub assembly (BEM)?

Hello!
I started to study the BEM full stack, I do everything according to the instructions .
Added a snippet to index.bemjson.js:

block: 'header',
            content: [
                {
                    block: 'image',
                    attrs: {
                        src: '//varya.me/online-shop-dummy/desktop.blocks/b-logo/b-logo.png'
                    }
            },
                {
                    elem: 'slogan',
                    content: 'A new way of thinking'
                }
            ]

The output is an image block without the src attribute. Moreover, if you use any other attribute (even srcc) it works out with a bang.
What is the reason for this behavior, who knows??
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question