commit
This commit is contained in:
@@ -6,18 +6,19 @@
|
||||
* @LastEditors: 刘引
|
||||
* @LastEditTime: 2022-03-04 15:53:16
|
||||
-->
|
||||
<p>home works!</p>
|
||||
|
||||
<!-- <app-news></app-news> -->
|
||||
<!-- <app-head></app-head> -->
|
||||
<!-- <app-news></app-news> -->
|
||||
<!-- <app-list></app-list> -->
|
||||
<!-- <app-body></app-body> -->
|
||||
<p>home works!</p>
|
||||
<div class="root">
|
||||
<div class="container">
|
||||
<div class="w">
|
||||
<h2>双向数据绑定用法(只适用于表单) MVVM</h2>
|
||||
<input type="text" [(ngModel)]="textContent" />
|
||||
<span>{{ textContent }}</span>
|
||||
<span>{{ textContent | json }}</span>
|
||||
</div>
|
||||
<div class="changeKey">
|
||||
<button (click)="changeKeyword()">改值</button>
|
||||
|
||||
Reference in New Issue
Block a user