2015-11-06 17:34:07 -08:00
|
|
|
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
2016-03-17 12:49:46 -07:00
|
|
|
import {bootstrap} from 'angular2/platform/browser';
|
2016-03-08 13:36:48 -08:00
|
|
|
import {Component} from 'angular2/core';
|
2015-05-22 14:39:00 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'error-app',
|
|
|
|
template: `
|
|
|
|
<button class="errorButton" (click)="createError()">create error</button>`
|
|
|
|
})
|
|
|
|
export class ErrorComponent {
|
|
|
|
createError(): void { throw new BaseException('Sourcemap test'); }
|
|
|
|
}
|
|
|
|
|
|
|
|
export function main() {
|
|
|
|
bootstrap(ErrorComponent);
|
|
|
|
}
|