import { OnInit } from '@angular/core';
export class AppComponent implements OnInit {
ngOnInit() {
}
}
==== Call method of a nested component ====
Dialogue
===== Templates =====
==== Access to HTML tags ====
==== Access to a form ====
==== ngFor with index ====
-
{{i}} {{item}}
==== Combining ngFor and ngIf ====
===== Others =====
==== String values ====
let url = `${this.heroesUrl}/${hero.id}`;