Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Uncaught Error: Template parse errors

Ao final da aula 10 LoadButton e depois de terminar de finalizar o código, ao rodar a página do flávio tive o erro:

compiler.js:1021 Uncaught Error: Template parse errors:
Can't bind to 'hasMore' since it isn't a known property of 'ap-load-button'.
1. If 'ap-load-button' is an Angular component and it has 'hasMore' input, then verify that it is part of this module.
2. If 'ap-load-button' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("otos [photos]="photos | filterByDescription: filter"></ap-photos>

<ap-load-button (click)="load()" [ERROR ->][hasMore]="hasMore"></ap-load-button>
"): ng:///PhotosModule/PhotoListComponent.html@12:33
    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)

Vou passar o código usado:

<ng-template #messageTemplate>

No more data to load

1 resposta
solução!

Fala ai Mauricio, tudo bem? Acho que acabou duplicando as dúvidas, vou encerrar essa e nos falamos na outra: https://cursos.alura.com.br/forum/topico-uncaught-error-template-parse-errors-122474

Abraços e bons estudos.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software