Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
Update API for 3.0.0-alpha+1 (#43)
Browse files Browse the repository at this point in the history
* Update for 3.0.0-alpha+1

* Update travis.
  • Loading branch information
matanlurey authored Mar 17, 2017
1 parent c51f132 commit c3cd700
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ sudo: false
dart:
- stable
- dev
- 1.21.1
- 1.22.0
with_content_shell: true
cache:
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Changelog
## 1.0.0-alpha+6

- Address breaking changes in `angular2`: `3.0.0-alpha+1`.

## 1.0.0-alpha+5

Expand Down
4 changes: 2 additions & 2 deletions lib/src/bootstrap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Future<ComponentRef> bootstrapForTest/*<E>*/(
appInjector,
beforeChangeDetection: beforeChangeDetection,
).then((componentRef) async {
hostElement.append(componentRef.location.nativeElement);
await ngZone.onTurnDone.first;
onErrorSub.cancel();
if (caughtError != null) {
Expand All @@ -72,10 +73,9 @@ Future<ComponentRef> _runAndLoadComponent/*<E>*/(
void beforeChangeDetection(component/*=E*/),
}) async {
final DynamicComponentLoader loader = appInjector.get(DynamicComponentLoader);
final componentRef = await loader.loadAsRootIntoNode(
final componentRef = await loader.load(
appComponentType,
appInjector,
overrideNode: hostElement,
);
if (beforeChangeDetection != null) {
beforeChangeDetection(componentRef.instance);
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: angular_test
author: Dart Team <[email protected]>
homepage: https://github.com/dart-lang/angular_test
description: Testing infrastructure for AngularDart
version: 1.0.0-alpha+5
version: 1.0.0-alpha+6

environment:
sdk: '>=1.20.0 <2.0.0'
sdk: '>=1.22.0 <2.0.0'

executables:
angular_test:

dependencies:
angular2: '>=3.0.0-alpha <3.0.0-alpha+2'
angular2: '3.0.0-alpha+1'
ansicolor: '^0.0.9'
pageloader: '^2.2.5'

Expand Down

0 comments on commit c3cd700

Please sign in to comment.