refactor: export core APIs from angular2/core
This change moves many APIs to the angular2/core export.
This change also automatically adds FORM_BINDINGS in
the application root injector.
BREAKING CHANGE:
Many dependencies that were previously exported from specific
APIs are now exported from angular2/core. Affected exports, which
should now be included from angular2/core include:
angular2/forms
angular2/di
angular2/directives
angular2/change_detection
angular2/bootstrap (except for dart users)
angular2/render
angular2/metadata
angular2/debug
angular2/pipes
Closes #3977
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {NgIf, bootstrap, Component, View} from 'angular2/bootstrap';
|
||||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {NgIf, Component, View} from 'angular2/core';
|
||||
import {TimerWrapper} from 'angular2/src/core/facade/async';
|
||||
|
||||
|
||||
@Component({selector: 'async-app'})
|
||||
@View({
|
||||
template: `
|
||||
@@ -12,12 +12,12 @@ import {TimerWrapper} from 'angular2/src/core/facade/async';
|
||||
<div id='delayedIncrement'>
|
||||
<span class='val'>{{val2}}</span>
|
||||
<button class='action' (click)="delayedIncrement()">Delayed Increment</button>
|
||||
<button class='cancel' *ng-if="timeoutId != null" (click)="cancelDelayedIncrement()">Cancel</button>
|
||||
<button class='cancel' *ng-if="timeoutId != null" (click)="cancelDelayedIncrement()">Cancel</button>
|
||||
</div>
|
||||
<div id='multiDelayedIncrements'>
|
||||
<span class='val'>{{val3}}</span>
|
||||
<button class='action' (click)="multiDelayedIncrements(10)">10 Delayed Increments</button>
|
||||
<button class='cancel' *ng-if="multiTimeoutId != null" (click)="cancelMultiDelayedIncrements()">Cancel</button>
|
||||
<button class='cancel' *ng-if="multiTimeoutId != null" (click)="cancelMultiDelayedIncrements()">Cancel</button>
|
||||
</div>
|
||||
<div id='periodicIncrement'>
|
||||
<span class='val'>{{val4}}</span>
|
||||
|
||||
Reference in New Issue
Block a user