2015-08-20 14:28:25 -07:00
|
|
|
import {BaseException} from 'angular2/src/core/facade/lang';
|
2015-07-22 10:18:04 -07:00
|
|
|
import {bootstrap, Component, View} from 'angular2/bootstrap';
|
2015-05-22 14:39:00 +02:00
|
|
|
|
|
|
|
@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);
|
|
|
|
}
|