property binding angular documentation
// component.ts
@Component({
templateUrl: 'component.html',
selector: 'app-component',
})
export class Component {
name = 'Peter';
updateName() {
this.name = 'John';
}
}
// component.ts
@Component({
templateUrl: 'component.html',
selector: 'app-component',
})
export class Component {
name = 'Peter';
updateName() {
this.name = 'John';
}
}
// component.html
<p>My name is {{name}}</p>
<button (click)="updateName()">Update button</button> // component.html
<p>My name is {{name}}</p>
<button (click)="updateName()">Update button</button>
Also in JavaScript:
- for loop inside a for loop javascript
- js origin without port
- vue resources post
- nodejs promise then example
- trigger play video jquery
- angular button open file input
- jest mock mockname
- javascript get first property of object
- override function javascript class
- javascript how to get the last character of a string
- how to drawImage on center of canvas
- in object transform translate property concat with rotate value angular 7
- How to Use the JavaScript Fetch API to Get Data
- discord.js join voice channel
- string split javascript
- double click sur image change javascript
- js save and load an array of different types into localstorage
- añadir react a node project
- identify chrome on android using javascript
- jQuery hasClass() - check for more than one class
- js iterate object
- how to Write a program that simulates a coin toss using random method of Javascript Math class
- html js drag image with mouse
- how to terminate a program in js