mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
f6cc573687
Closes #4117
19 lines
489 B
TypeScript
19 lines
489 B
TypeScript
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
|
import {bootstrap} from 'angular2/bootstrap';
|
|
import {Component, View} from 'angular2/core';
|
|
|
|
@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);
|
|
}
|