export interface Product {
id: number;
name: string;
price: number;
}
<div>
<h1>{{ product.name }}</h1>
<p>Price: {{ product.price }}</p>
</div>
<input ng-model="productName" />
<p>{{ productName }}</p>
<button (click)="onButtonClick()">Click me</button>
<input [(ngModel)]="productName" />
<p>{{ productName }}</p>
app.controller('ProductController', function($scope) {
$scope.productName = 'AngularJS Book';
});