Skip to content

Commit 9d1fd9a

Browse files
committed
ocr: Two-way binding
1 parent 3d1f809 commit 9d1fd9a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/app/app.module.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
3+
import { FormsModule } from '@angular/forms';
34

45
import { AppRoutingModule } from './app-routing.module';
56
import { AppComponent } from './app.component';
@@ -14,7 +15,8 @@ import { AppareilComponent } from './appareil/appareil.component';
1415
],
1516
imports: [
1617
BrowserModule,
17-
AppRoutingModule
18+
AppRoutingModule,
19+
FormsModule
1820
],
1921
providers: [],
2022
bootstrap: [AppComponent]
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<li class="list-group-item">
22
<h4>Appareil : {{ appareilName }} -- Statut : {{ getStatus() }}</h4>
3+
<input type="text" class="form-control" [(ngModel)]="appareilName">
34
</li>

0 commit comments

Comments
 (0)