D
D
Demigodd2019-08-05 15:13:16
Angular
Demigodd, 2019-08-05 15:13:16

Why is the block not displayed after the directive?

JSFiddle Link
There is a hello-world directive followed by a div block.
What is the difference between these two syntaxes ?
Why is the block after the directive not displayed in the first case, and is displayed in the second case?

<hello-world />
<div>Test</div>

<hello-world></hello-world>
<div>Test</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Pikat, 2019-08-05
@Demigodd

Features of Angular. They decided not to support such parsing.
https://github.com/angular/angular/issues/673
https://github.com/angular/angular/issues/25082

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question