Example of view and class logic files swapped (#28928)

The file containing class logic usually resides in the *.component.ts file and the view container in the *.component.html. The examples were switched around.
This commit is contained in:
David Lau
2019-06-27 19:11:43 -07:00
committed by Randell Dawson
parent 3bb3ea1a98
commit 7790535664

View File

@@ -6,7 +6,7 @@ title: Data Binding
#### Motivation
Data often defines the look of an application. Interpreting that data into the user interface involves class logic (`.component.html`) and a template view (`.component.ts`) . Angular connects them through data binding. Think of data binding as a tool for component interaction.
Data often defines the look of an application. Interpreting that data into the user interface involves class logic (`*.component.ts`) and a template view (`*.component.html`) . Angular connects them through data binding. Think of data binding as a tool for component interaction.
#### Component and Template