Erro Angular: "Can't bind to 'ngModel' since it isn't a known property of 'input'"
Olá a todos! Sou novo em Angular e TypeScript, e encontrei um problema ao tentar usar two-way data binding com ngModel. Estou escrevendo um aplicativo simples de notas, e aqui está meu código:
```typescript
// app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
noteTitle: string = '';
}
```
```html
```
Ao executar o aplicativo (Angular 15), aparece no console do navegador o erro:
"Can't bind to 'ngModel' since it isn't a known
Minhas notas
Você digitou: {{ noteTitle }}