File tree Expand file tree Collapse file tree 7 files changed +126
-0
lines changed
Expand file tree Collapse file tree 7 files changed +126
-0
lines changed Original file line number Diff line number Diff line change 1+ import { Component } from '@angular/core' ;
2+
3+ @Component ( {
4+ selector : 'my-app' ,
5+ template : '<h1>Hello</h1>'
6+ } )
7+
8+
9+ export class AppComponent { }
Original file line number Diff line number Diff line change 1+ < html >
2+
3+ < head >
4+ < title > My AngWP app</ title >
5+ < meta name ="viewport " content ="width=device-width,initial-scale=1 ">
6+ </ head >
7+
8+ < body >
9+ < my-app > View is loading</ my-app >
10+
11+ < script src ="node_modules/core-js/client/shim.min.js "> </ script >
12+ < script src ="node_modules/zone.js/dist/zone.js "> </ script >
13+ < script src ="node_modules/reflect-metadata/Reflect.js "> </ script >
14+ < script src ="dist/bundle.js "> </ script >
15+ </ body >
16+
17+ </ html >
18+
19+ <!--<html>
20+
21+ <head>
22+ <title>Angular 2 QuickStart</title>
23+ <meta charset="UTF-8">
24+ <meta name="viewport" content="width=device-width, initial-scale=1">
25+ <link rel="stylesheet" href="styles.css">
26+ <!-- 1. Load libraries -->
27+ <!-- Polyfill(s) for older browsers -->
28+ <!--<script src="node_modules/core-js/client/shim.min.js"></script>
29+ <script src="node_modules/zone.js/dist/zone.js"></script>
30+ <script src="node_modules/reflect-metadata/Reflect.js"></script>
31+ <script src="node_modules/systemjs/dist/system.src.js"></script>-->
32+ <!-- 2. Configure SystemJS -->
33+ <!--<script src="systemjs.config.js"></script>
34+ <script>
35+ System.import('app').catch(function(err){ console.error(err); });
36+ </script>
37+ </head>-->
38+ <!-- 3. Display the application -->
39+
40+ <!--<body>
41+ <my-app>Loading...</my-app>
42+ </body>
43+
44+ </html>-->
Original file line number Diff line number Diff line change 1+ import { bootstrap } from '@angular/platform-browser-dynamic' ;
2+ import { AppComponent } from './app/app.component' ;
3+
4+ bootstrap ( AppComponent ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " MyAppWP" ,
3+ "version" : " 1.0.0" ,
4+ "scripts" : {
5+ "build" : " webpack" ,
6+ "start" : " tsc && webpack-dev-server" ,
7+ "postinstall" : " typings install" ,
8+ "tsc" :" tsc"
9+ },
10+ "dependencies" : {
11+ "@angular/core" : " 2.0.0-rc.1" ,
12+ "@angular/common" : " 2.0.0-rc.1" ,
13+ "@angular/http" : " 2.0.0-rc.1" ,
14+ "@angular/router" : " 2.0.0-rc.1" ,
15+ "@angular/compiler" : " 2.0.0-rc.1" ,
16+ "@angular/platform-browser" : " 2.0.0-rc.1" ,
17+ "@angular/platform-browser-dynamic" : " 2.0.0-rc.1" ,
18+ "@angular/platform-server" : " 2.0.0-rc.1" ,
19+ "rxjs" : " 5.0.0-beta.6" ,
20+ "zone.js" : " ^0.6.12" ,
21+ "reflect-metadata" : " ^0.1.3" ,
22+ "core-js" : " ^2.4.0"
23+ },
24+ "devDependencies" : {
25+ "typescript" : " ^1.8.10" ,
26+ "typings" : " ^1.0.4" ,
27+ "ts-loader" : " ^0.8.2" ,
28+ "webpack" : " ^1.13.1" ,
29+ "webpack-dev-server" : " ^1.14.1"
30+ }
31+ }
Original file line number Diff line number Diff line change 1+ {
2+ "compilerOptions" : {
3+ "target" : " es5" ,
4+ "module" : " commonjs" ,
5+ "moduleResolution" : " node" ,
6+ "sourceMap" : true ,
7+ "emitDecoratorMetadata" : true ,
8+ "experimentalDecorators" : true ,
9+ "removeComments" : false ,
10+ "noImplicitAny" : true ,
11+ "suppressImplicitAnyIndexErrors" : true
12+ },
13+ "exclude" : [
14+ " node_modules"
15+ ]
16+ }
Original file line number Diff line number Diff line change 1+ {
2+ "globalDependencies" : {
3+ "core-js" : " registry:dt/core-js#0.0.0+20160317120654" ,
4+ "jasmine" : " registry:dt/jasmine#2.2.0+20160505161446" ,
5+ "node" : " registry:dt/node#4.0.0+20160509154515"
6+ }
7+ }
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ entry : "./main.ts" ,
3+ output : {
4+ path : __dirname ,
5+ filename : "./dist/bundle.js"
6+ } ,
7+ resolve : {
8+ extentions : [ '' , '.js' , '.ts' ]
9+ } ,
10+ module : {
11+ loaders : [ {
12+ test : / \. t s / , loaders : [ 'ts-loader' ] , exclude : / n o d e _ m o d u l e s /
13+ } ]
14+ }
15+ } ;
You can’t perform that action at this time.
0 commit comments