I'm starting in the Angular 4 framework, and I have a question about Select, I need to know what option the user of my Select selects.
In my App.component.html I have this code:
<select name="" id="cantidad" (change)="capturar()">
<option *ngFor="let dato of datos">
{{dato}}
</option>
</select>
And in my app.component.ts I have this:
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
datos;
constructor(){
this.datos=[1,2,3,4,5,6,7,8,9,10];
}
capturar(){
}
}