Skip to content

Commit

Permalink
Quick Start App
Browse files Browse the repository at this point in the history
  • Loading branch information
techieshravan committed May 15, 2016
1 parent d8bda88 commit 524c169
Show file tree
Hide file tree
Showing 16 changed files with 247 additions and 0 deletions.
35 changes: 35 additions & 0 deletions material2-examples/example1/app/app.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!-- <md-toolbar color="primary">
Angular Material 2 App
</md-toolbar>
<div style="padding: 10px">
<button md-button>FLAT</button>
<br/><br/>
<button md-raised-button>RAISED</button>
<br/><br/>
<button md-icon-button>
<md-icon class="md-24">favorite</md-icon>
</button>
<br/><br/>
<button md-fab>
<md-icon class="md-24">add</md-icon>
</button>
<br/><br/>
<button md-mini-fab>
<md-icon class="md-24">add</md-icon>
</button>
<br/><br/>
<button md-raised-button color="primary">PRIMARY</button>
<br/><br/>
<button md-raised-button color="accent">ACCENT</button>
<br/><br/>
<button md-raised-button color="warn">WARN</button>
<br/><br/>
<button md-button disabled>off</button>
<br/><br/>
<button md-raised-button [disabled]="isDisabled">off</button>
<br/><br/>
<button md-mini-fab [disabled]="isDisabled">check circle</button>
<br/><br/>
</div> -->
<h1>TEST</h1>
10 changes: 10 additions & 0 deletions material2-examples/example1/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import {Component} from '@angular/core';
// import {MdToolbar} from '@angular2-material/toolbar';
// import {MdButton} from '@angular2-material/button';

@Component({
selector: 'material-app',
templateUrl: '/app/app.component.html'
//,directives: [MdToolbar, MdButton]
})
export class AppComponent {}
4 changes: 4 additions & 0 deletions material2-examples/example1/app/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import {bootstrap} from '@angular/platform-browser-dynamic';
import {AppComponent} from './app.component';

bootstrap(AppComponent);
Binary file added material2-examples/example1/favicon.ico
Binary file not shown.
27 changes: 27 additions & 0 deletions material2-examples/example1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<html>
<head>
<title>Angular Material 2 App</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <link rel="stylesheet" href="styles.css"> -->

<!-- 1. Load libraries -->
<!-- Polyfill(s) for older browsers -->
<script src="node_modules/es6-shim/es6-shim.min.js"></script>

<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>

<!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script>
<script>
System.import('app').catch(function(err){ console.error(err); });
</script>
</head>

<!-- 3. Display the application -->
<body>
<material-app>Loading the Angular 2 Material App...</material-app>
</body>
</html>
48 changes: 48 additions & 0 deletions material2-examples/example1/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "example1",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\" ",
"lite": "lite-server",
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"typings": "typings"
},
"author": "",
"license": "ISC",
"dependencies": {
"@angular/common": "^2.0.0-rc.1",
"@angular/compiler": "^2.0.0-rc.1",
"@angular/core": "^2.0.0-rc.1",
"@angular/platform-browser": "^2.0.0-rc.1",
"@angular/platform-browser-dynamic": "^2.0.0-rc.1",

"@angular2-material/core": "^2.0.0-alpha.4",
"@angular2-material/button": "^2.0.0-alpha.4",
"@angular2-material/card": "^2.0.0-alpha.4",
"@angular2-material/checkbox": "^2.0.0-alpha.4",
"@angular2-material/icon": "^2.0.0-alpha.4",
"@angular2-material/input": "^2.0.0-alpha.4",
"@angular2-material/list": "^2.0.0-alpha.4",
"@angular2-material/progress-bar": "^2.0.0-alpha.4",
"@angular2-material/progress-circle": "^2.0.0-alpha.4",
"@angular2-material/radio": "^2.0.0-alpha.4",
"@angular2-material/sidenav": "^2.0.0-alpha.4",
"@angular2-material/toolbar": "^2.0.0-alpha.4",

"es6-shim": "^0.35.1",
"reflect-metadata": "^0.1.3",
"rxjs": "^5.0.0-beta.6",
"systemjs": "^0.19.27",
"zone.js": "^0.6.12"
},
"devDependencies": {
"concurrently": "^2.1.0",
"lite-server": "^2.2.0",
"typescript": "^1.8.10",
"typings": "^0.8.1"
}
}
17 changes: 17 additions & 0 deletions material2-examples/example1/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
},
"exclude": [
"node_modules",
"typings/main",
"typings/main.d.ts"
]
}
7 changes: 7 additions & 0 deletions material2-examples/example1/typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ambientDependencies": {
"es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160412134438",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}
1 change: 1 addition & 0 deletions quickstart/app/app.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>{{message}}</h1>
9 changes: 9 additions & 0 deletions quickstart/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {Component} from '@angular/core';

@Component({
selector: 'quick-start-app',
templateUrl: '/app/app.component.html'
})
export class AppComponent {
message:string = 'Angualr 2 Quick Start';
}
4 changes: 4 additions & 0 deletions quickstart/app/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import {bootstrap} from '@angular/platform-browser-dynamic';
import {AppComponent} from './app.component';

bootstrap(AppComponent);
Binary file added quickstart/favicon.ico
Binary file not shown.
26 changes: 26 additions & 0 deletions quickstart/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<html>
<head>
<title>Angular 2 Quick Start App</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- 1. Load libraries -->
<!-- Polyfill(s) for older browsers -->
<script src="node_modules/es6-shim/es6-shim.min.js"></script>

<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>

<!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script>
<script>
System.import('app').catch(function(err){ console.error(err); });
</script>
</head>

<!-- 3. Display the application -->
<body>
<quick-start-app>Loading the Angular 2 Quick Start App...</quick-start-app>
</body>
</html>
35 changes: 35 additions & 0 deletions quickstart/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "quick-start",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\" ",
"lite": "lite-server",
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"typings": "typings"
},
"author": "",
"license": "ISC",
"dependencies": {
"@angular/common": "^2.0.0-rc.1",
"@angular/compiler": "^2.0.0-rc.1",
"@angular/core": "^2.0.0-rc.1",
"@angular/platform-browser": "^2.0.0-rc.1",
"@angular/platform-browser-dynamic": "^2.0.0-rc.1",

"es6-shim": "^0.35.1",
"reflect-metadata": "^0.1.3",
"rxjs": "^5.0.0-beta.6",
"systemjs": "^0.19.27",
"zone.js": "^0.6.12"
},
"devDependencies": {
"concurrently": "^2.1.0",
"lite-server": "^2.2.0",
"typescript": "^1.8.10",
"typings": "^0.8.1"
}
}
17 changes: 17 additions & 0 deletions quickstart/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
},
"exclude": [
"node_modules",
"typings/main",
"typings/main.d.ts"
]
}
7 changes: 7 additions & 0 deletions quickstart/typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ambientDependencies": {
"es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160412134438",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}

0 comments on commit 524c169

Please sign in to comment.