Dodałem taki wpis do pliku html i nic się nie wyświetla, konsola pokazuje mi taki błąd.
<app-nowy *ngFor="let i of [1, 2, 3, 4]"></app-nowy>
Uncaught Error: Template parse errors:
'app-nowy' is not a known element:
1. If 'app-nowy' is an Angular component, then verify that it is part of this module.
2. If 'app-nowy' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
</ul> -->
[ERROR ->]<app-nowy *ngFor="let i of [1, 2, 3, 4]"></app-nowy>
<!-- <p>
Witamy na kursie {{title | uppercase}"): ng:///AppModule/AppComponent.html@21:0
at syntaxError (compiler.js:1021)
at TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js:14830)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._parseTemplate (compiler.js:24018)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileTemplate (compiler.js:24005)
at compiler.js:23948
at Set.forEach (<anonymous>)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:23948)
at compiler.js:23858
at Object.then (compiler.js:1012)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:23857)