Angular Error: "Can't bind to 'ngModel' since it isn't a known property of 'input'"
Hello everyone! I'm new to Angular and TypeScript, and I've encountered an issue when trying to use two-way data binding with ngModel. I'm writing a simple notes application, and here's my code:
```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
```
When running the application (Angular 15), the browser console shows the following error:
"Can't bind to 'ngModel' since it isn't a known
My Notes
You entered: {{ noteTitle }}