У меня проблема с подключением, потому что я пытаюсь использовать "article" или "div"
Ошибка:
message: 'Can't bind to 'ngForFor' since it isn't a known property of 'div'.'
message: 'Property binding ngForFor not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".'
<section class='mycontainer'>
<article *ngFor = "let numberStep for steps; let i = index"
[ngClass] = "article + i">
<div class='line'></div>
<div class='circle'></div>
</article>
</section>
Как использовать этот * ngFor с разделителем?
Извините за мой английский.





так должно быть
*ngFor = "let numberStep of steps; let i = index;"
и вам также необходимо убедиться, что вы импортировали CommonModule в модуль этого компонента, статья
я имел в виду, что любой компонент, использующий элемент <article>, должен иметь Commonmodule, импортированный в его родительский модуль
Используйте ngFor = "let numberStep of steps; let i = index" или ngFor = "let numberStep in steps; let i = index"
Вы делаете ошибку, используя для внутренней директивы * ngFor
На самом деле статья - это собственный тег html 5 .. здесь нет углового компонента