@ -1,24 +0,0 @@
|
||||
import { BaseException, print, CONST } from 'angular2/src/facade/lang';
|
||||
import { bootstrap } from 'angular2/angular2';
|
||||
// TODO(radokirov): Once the application is transpiled by TS instead of Traceur,
|
||||
// add those imports back into 'angular2/angular2';
|
||||
import {Component} from 'angular2/src/core/annotations_impl/annotations';
|
||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
|
||||
@Component({
|
||||
selector: 'error-app',
|
||||
})
|
||||
@View({
|
||||
template: `
|
||||
<button class="errorButton" (click)="createError()">create error</button>`,
|
||||
directives: []
|
||||
})
|
||||
export class ErrorComponent {
|
||||
createError() {
|
||||
throw new BaseException('Sourcemap test');
|
||||
}
|
||||
}
|
||||
|
||||
export function main() {
|
||||
bootstrap(ErrorComponent);
|
||||
}
|
17
modules/examples/src/sourcemap/index.ts
Normal file
17
modules/examples/src/sourcemap/index.ts
Normal file
@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
Reference in New Issue
Block a user