This repository was archived by the owner on Feb 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +23
-24
lines changed Expand file tree Collapse file tree 5 files changed +23
-24
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
- import { Component } from 'angular2 /core' ;
1
+ import { Component } from '@angular /core' ;
2
2
3
3
@Component ( {
4
4
selector : 'my-app' ,
Original file line number Diff line number Diff line change 1
- import { bootstrap } from 'angular2 /platform/ browser' ;
1
+ import { bootstrap } from '@angular /platform- browser-dynamic ' ;
2
2
import { AppComponent } from './app.component' ;
3
3
4
4
bootstrap ( AppComponent ) ;
Original file line number Diff line number Diff line change 1
1
< html >
2
2
< head >
3
3
< title > Angular 2 QuickStart</ title >
4
+ < meta charset ="UTF-8 ">
4
5
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
5
6
< link rel ="stylesheet " href ="styles.css ">
6
- <!-- 1. Load libraries -->
7
- <!-- IE required polyfills, in this exact order -->
7
+
8
+ <!-- Polyfill(s) for older browsers -->
8
9
< script src ="node_modules/es6-shim/es6-shim.min.js "> </ script >
9
- < script src ="node_modules/angular2/es6/dev/src/testing/shims_for_IE.js "> </ script >
10
10
11
- < script src ="node_modules/angular2/bundles/angular2-polyfills.js "> </ script >
11
+ < script src ="node_modules/zone.js/dist/zone.js "> </ script >
12
+ < script src ="node_modules/reflect-metadata/Reflect.js "> </ script >
12
13
< script src ="node_modules/systemjs/dist/system.src.js "> </ script >
13
- < script src ="node_modules/rxjs/bundles/Rx.js "> </ script >
14
- < script src ="node_modules/angular2/bundles/angular2.dev.js "> </ script >
15
- <!-- 2. Configure SystemJS -->
14
+
15
+ < script src ="systemjs.config.js "> </ script >
16
16
< script >
17
- System . config ( {
18
- packages : {
19
- app : {
20
- format : 'register' ,
21
- defaultExtension : 'js'
22
- }
23
- }
24
- } ) ;
25
- System . import ( 'app/main' )
26
- . then ( null , console . error . bind ( console ) ) ;
17
+ System . import ( 'app' ) . catch ( function ( err ) { console . error ( err ) ; } ) ;
27
18
</ script >
28
19
</ head >
29
- <!-- 3. Display the application -->
20
+
30
21
< body >
31
22
< my-app > Loading...</ my-app >
32
23
</ body >
Original file line number Diff line number Diff line change 20
20
"author" : " " ,
21
21
"license" : " ISC" ,
22
22
"dependencies" : {
23
- "angular2" : " 2.0.0-beta.17" ,
24
- "systemjs" : " 0.19.26" ,
23
+ "@angular/common" : " 2.0.0-rc.0" ,
24
+ "@angular/compiler" : " 2.0.0-rc.0" ,
25
+ "@angular/core" : " 2.0.0-rc.0" ,
26
+ "@angular/http" : " 2.0.0-rc.0" ,
27
+ "@angular/platform-browser" : " 2.0.0-rc.0" ,
28
+ "@angular/platform-browser-dynamic" : " 2.0.0-rc.0" ,
29
+ "@angular/router-deprecated" : " 2.0.0-rc.0" ,
30
+ "@angular/upgrade" : " 2.0.0-rc.0" ,
31
+
32
+ "systemjs" : " 0.19.27" ,
25
33
"es6-shim" : " ^0.35.0" ,
26
- "reflect-metadata" : " 0.1.2 " ,
34
+ "reflect-metadata" : " ^ 0.1.3 " ,
27
35
"rxjs" : " 5.0.0-beta.6" ,
28
36
"zone.js" : " ^0.6.12" ,
29
37
30
- "a2 -in-memory-web-api" : " ^0.1.17 " ,
38
+ "angular2 -in-memory-web-api" : " 0.0.6 " ,
31
39
"bootstrap" : " ^3.3.6"
32
40
},
33
41
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments