2016-06-23 09:47:54 -07:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2016-08-05 09:56:53 -07:00
|
|
|
import {Component} from '@angular/core';
|
2016-05-01 22:54:19 -07:00
|
|
|
import {BaseException} from '@angular/core/src/facade/exceptions';
|
2016-06-10 10:21:53 -07:00
|
|
|
import {bootstrap} from '@angular/platform-browser-dynamic';
|
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);
|
|
|
|
}
|