Closed balinterdi closed 6 years ago
My hunch (but I might be totally wrong) is that that's because fa-icon does some AST transformation itself, so getTag doesn't work on it as it does on other elements.
Precisely. Basically getTag
expects to be able to find the raw/original source for a given tag in the raw template source. In this case (based on the screenshot) you can see that we are looking for an <i>
element, but in the original source you shared that doesn't exist ({{fa-icon}}
is transformed into <i>
).
Great, thank you!
After installing this add-on and re-launching the ember server, I received the following error:
The template looks like this:
I launched a debugging process and found the following.
The line that throws the error is this one:
For some reason, the value of
tag
becomes an empty string for{{fa-icon "angle-right"}}
even though theelement
has atag
attribute that's equal toi
. SogetTag
extracts the value incorrectly (as far as I can tell),tag
becomes an empty string andinvocationFirstChar
undefined – it then blows up.Here's a screenshot about my debugging window that shows this.
My hunch (but I might be totally wrong) is that that's because
fa-icon
does some AST transformation itself, sogetTag
doesn't work on it as it does on other elements.