On the page there is an element with an attribute
some-attr="Hello Habr!" Its value is transmitted to the directive in two ways:
through scope
via attrs.someAttr
In the directive, these values are also displayed in two ways:
via template:
"{{someAttr}} - {{qwerty}}",
via console:
console.log ('qwerty', qwerty); console.log ('someAttr', someAttr);
I don’t understand why in the first case qwerty is not displayed, and in the second case someAttr is not displayed. I was hoping that both qwerty and someAttr would be output in both cases.