Update the Angular 2 transformer to recognize `package:angular2/platform/browser.dart` as the library which exports the `bootstrap` function. Update playground, examples, benchmarks, & tests to import bootstrap from platform/browser. Closes #7647
16 lines
342 B
TypeScript
16 lines
342 B
TypeScript
import {Component} from 'angular2/core';
|
|
import {bootstrap} from 'angular2/platform/browser';
|
|
|
|
@Component({
|
|
selector: 'hello-app',
|
|
template: `
|
|
<h1>Hello, {{name}}!</h1>
|
|
<label> Say hello to: <input [value]="name" (input)="name = $event.target.value"></label>
|
|
`
|
|
})
|
|
export class HelloCmp {
|
|
name = 'World';
|
|
}
|
|
|
|
bootstrap(HelloCmp);
|