18 lines
429 B
TypeScript
18 lines
429 B
TypeScript
|
import {BaseException} from 'angular2/src/facade/lang';
|
||
|
import {bootstrap, Component, View} from 'angular2/angular2';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'error-app',
|
||
|
})
|
||
|
@View({
|
||
|
template: `
|
||
|
<button class="errorButton" (click)="createError()">create error</button>`
|
||
|
})
|
||
|
export class ErrorComponent {
|
||
|
createError(): void { throw new BaseException('Sourcemap test'); }
|
||
|
}
|
||
|
|
||
|
export function main() {
|
||
|
bootstrap(ErrorComponent);
|
||
|
}
|