class Controller {
private _inputPreco: HTMLInputElement;
constructor() {
this._inputPreco = <HTMLInputElement>document.querySelector('#preco');
}
adiciona(event:Event) {
event.preventDefault();
alert(this._inputPreco.value);
}
}