Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (19 sloc) 535 Bytes
import "./hello.css";
import { bindable, autoinject } from "aurelia-framework";
import { client } from "../../shared";
import { Hello } from "../../dtos";
@autoinject()
export class HelloCustomElement {
result: string;
@bindable name: string;
async nameChanged(name:string) {
if (name) {
var req = new Hello();
req.name = name;
const r = await client.get(req);
this.result = r.result;
} else {
this.result = '';
}
}
}