Welcome aboard! We are happy you are here and wish you good net-raft!
// put into app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'your title;
// declared array of months.
langs = ["AngularJS", "Angular2", "Angular4", "Angular5", "React",];
}
// put into app.component.html
<div style="text-align:center">
<h1>
Welcome to {{title}}.
</h1>
</div>
<div> Tech :
<select>
<option *ngFor="let i of langs">{{i}}</option>
</select>
</div>
The most helpful ANGULAR solutions
get computer name angular2ANGULAR Click to see more ... 6.1K 56