update quick start to 26, for realsies
This commit is contained in:
parent
1d06a4a6fc
commit
299700c26c
|
@ -38,14 +38,14 @@ p.
|
||||||
specify the angular2 and browser packages as dependencies,
|
specify the angular2 and browser packages as dependencies,
|
||||||
as well as the angular2 transformer.
|
as well as the angular2 transformer.
|
||||||
Angular 2 is changing rapidly, so provide an exact version:
|
Angular 2 is changing rapidly, so provide an exact version:
|
||||||
<b>2.0.0-alpha.25</b>.
|
<b>2.0.0-alpha.26</b>.
|
||||||
|
|
||||||
code-example(language="yaml" format="linenums").
|
code-example(language="yaml" format="linenums").
|
||||||
name: hello_world
|
name: hello_world
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-alpha.25
|
angular2: 2.0.0-alpha.26
|
||||||
browser: ^0.10.0+2
|
browser: ^0.10.0
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
entry_points: web/main.dart
|
entry_points: web/main.dart
|
||||||
|
@ -79,8 +79,8 @@ p.
|
||||||
code-example(language="dart" format="linenums").
|
code-example(language="dart" format="linenums").
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/angular2.dart';
|
||||||
import 'package:angular2/src/reflection/reflection.dart' show reflector;
|
import 'package:angular2/src/reflection/reflection.dart' show reflector;
|
||||||
import 'package:angular2/src/reflection/reflection_capabilities.dart' show ReflectionCapabilities;
|
import 'package:angular2/src/reflection/reflection_capabilities.dart'
|
||||||
|
show ReflectionCapabilities;
|
||||||
//- STEP 3 - Define a component ##########################
|
//- STEP 3 - Define a component ##########################
|
||||||
.l-main-section
|
.l-main-section
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ p.
|
||||||
Update <code>web/main.dart</code>, adding the following code
|
Update <code>web/main.dart</code>, adding the following code
|
||||||
after the imports:
|
after the imports:
|
||||||
|
|
||||||
code-example(language="dart" format="linenums:5").
|
code-example(language="dart" format="linenums:6").
|
||||||
@Component(
|
@Component(
|
||||||
selector: 'my-app'
|
selector: 'my-app'
|
||||||
)
|
)
|
||||||
|
@ -161,7 +161,7 @@ p.
|
||||||
p.
|
p.
|
||||||
Add the following code to the bottom of <code>web/main.dart</code>:
|
Add the following code to the bottom of <code>web/main.dart</code>:
|
||||||
|
|
||||||
code-example(language="dart" format="linenums:15").
|
code-example(language="dart" format="linenums:16").
|
||||||
main() {
|
main() {
|
||||||
reflector.reflectionCapabilities = new ReflectionCapabilities();
|
reflector.reflectionCapabilities = new ReflectionCapabilities();
|
||||||
bootstrap(AppComponent);
|
bootstrap(AppComponent);
|
||||||
|
@ -245,16 +245,16 @@ p.
|
||||||
|
|
||||||
code-example(language="basic").
|
code-example(language="basic").
|
||||||
> <span class="blk">pub build</span>
|
> <span class="blk">pub build</span>
|
||||||
Loading source assets...
|
Loading source assets...
|
||||||
Loading angular2 transformers...
|
Loading angular2 transformers...
|
||||||
INFO: Formatter is being overwritten.
|
INFO: Formatter is being overwritten.
|
||||||
Building hello_world... (3.1s)
|
Building hello_world... (3.8s)
|
||||||
[Info from Dart2JS]:
|
[Info from Dart2JS]:
|
||||||
Compiling hello_world|web/main.dart...
|
Compiling hello_world|web/main.dart...
|
||||||
[Info from Dart2JS]:
|
[Info from Dart2JS]:
|
||||||
Took 0:00:16.123086 to compile hello_world|web/main.dart.
|
Took 0:00:15.612746 to compile hello_world|web/main.dart.
|
||||||
Built 41 files to "build".
|
Built 63 files to "build".
|
||||||
//- REGENERATE THIS OUTPUT - or delete it? - when updating from 2.0.0-alpha.25
|
//- REGENERATE THIS OUTPUT - or delete it? - when updating from 2.0.0-alpha.26
|
||||||
|
|
||||||
p.
|
p.
|
||||||
The generated JavaScript appears, along with supporting files,
|
The generated JavaScript appears, along with supporting files,
|
||||||
|
@ -273,8 +273,8 @@ p.
|
||||||
name: hello_world
|
name: hello_world
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-alpha.25
|
angular2: 2.0.0-alpha.26
|
||||||
browser: ^0.10.0+2
|
browser: ^0.10.0
|
||||||
<span class="pnk">transformers:
|
<span class="pnk">transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
entry_points: web/main.dart</span>
|
entry_points: web/main.dart</span>
|
||||||
|
|
Loading…
Reference in New Issue