mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 05:20:24 +08:00
22 lines
366 B
TypeScript
22 lines
366 B
TypeScript
namespace Components {
|
|
export class TestComponent extends polymer.Base {
|
|
|
|
public field: string = 'foo';
|
|
public is: string;
|
|
|
|
constructor() {
|
|
super();
|
|
this.is = 'test-test';
|
|
}
|
|
|
|
public ready(): void {
|
|
console.log('ready');
|
|
this.async(() => {
|
|
console.log('delayed');
|
|
}, 500);
|
|
}
|
|
}
|
|
|
|
polymer.createElement(TestComponent);
|
|
}
|