mdoloresng / Angular

0 stars 0 forks source link

Input-binding (Two-Way-Data-Binding) #7

Open mdoloresng opened 11 months ago

mdoloresng commented 11 months ago

Erstelle zwei neue Komponenten in deiner Angular Webapplikation. Stelle die zweite Komponente in der ersten über den entsprechenden Selektor dar und übergib als Binding deinen Namen, welcher als lokale Komponente Variable angelegt sein sollte. Zeige den Wert in der zweiten Komponente, indem du diesen in der Konsole ausgibst

mdoloresng commented 11 months ago

Two-Way-Data-Binding is made witht he directive NgModel. With Property Binding we transfer data from the component to the view [property], with Event Binding we transfer data from the view to the component (event). Two-Way-Data Binding transfers data in both directions at the same time.