For the documentation of Angular. No need to link it.
ngOnInit()
"Initialize the directive/component after Angular first displays the data-bound properties and sets the directive/component’s input properties.
Called once, after the first ngOnChanges()."
What does it mean by “displays the data-bound properties”?
Why use the world “display” if only data is stored?
What is the difference between “data-bound properties” and “input properties”?
It means it rendered everything that is inside double curly braces:
@Component({
selector: 'greeting',
template: `
<h1>Hello {{name}}!</h1>
`
})
export class GreetingComponent {
name = 'world' // data-bound property
}
A component wouldn’t only store data; it either displays data directly, or passes the data down to presentational components (which then display the data).
Input properties are received from outside, such as