Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bca401f

Browse files
committed
added angular version created wtih angular-cli
1 parent dfae94d commit bca401f

19 files changed

+649
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
# Only exists if Bazel was run
8+
/bazel-out
9+
10+
# dependencies
11+
/node_modules
12+
13+
# profiling files
14+
chrome-profiler-events*.json
15+
speed-measure-plugin*.json
16+
17+
# IDEs and editors
18+
/.idea
19+
.project
20+
.classpath
21+
.c9/
22+
*.launch
23+
.settings/
24+
*.sublime-workspace
25+
26+
# IDE - VSCode
27+
.vscode/*
28+
!.vscode/settings.json
29+
!.vscode/tasks.json
30+
!.vscode/launch.json
31+
!.vscode/extensions.json
32+
.history/*
33+
34+
# misc
35+
/.sass-cache
36+
/connect.lock
37+
/coverage
38+
/libpeerconnection.log
39+
npm-debug.log
40+
yarn-error.log
41+
testem.log
42+
/typings
43+
44+
# System Files
45+
.DS_Store
46+
Thumbs.db

frameworks/keyed/angular-ng/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# AngularNg
2+
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.24.
4+
5+
## Development server
6+
7+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
8+
9+
## Code scaffolding
10+
11+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12+
13+
## Build
14+
15+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
16+
17+
## Running unit tests
18+
19+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20+
21+
## Running end-to-end tests
22+
23+
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24+
25+
## Further help
26+
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"angular-ng": {
7+
"projectType": "application",
8+
"schematics": {},
9+
"root": "",
10+
"sourceRoot": "src",
11+
"prefix": "app",
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "dist/angular-ng",
17+
"index": "src/index.html",
18+
"main": "src/main.ts",
19+
"polyfills": "src/polyfills.ts",
20+
"tsConfig": "tsconfig.app.json",
21+
"aot": false,
22+
"assets": [
23+
{ "glob": "**/*", "input": "src/css/", "output": "/css/" }
24+
],
25+
"styles": [
26+
],
27+
"scripts": []
28+
},
29+
"configurations": {
30+
"production": {
31+
"fileReplacements": [
32+
{
33+
"replace": "src/environments/environment.ts",
34+
"with": "src/environments/environment.prod.ts"
35+
}
36+
],
37+
"optimization": true,
38+
"outputHashing": "all",
39+
"sourceMap": false,
40+
"extractCss": true,
41+
"namedChunks": false,
42+
"aot": true,
43+
"extractLicenses": true,
44+
"vendorChunk": false,
45+
"buildOptimizer": true,
46+
"budgets": [
47+
{
48+
"type": "initial",
49+
"maximumWarning": "2mb",
50+
"maximumError": "5mb"
51+
},
52+
{
53+
"type": "anyComponentStyle",
54+
"maximumWarning": "6kb",
55+
"maximumError": "10kb"
56+
}
57+
]
58+
}
59+
}
60+
},
61+
"serve": {
62+
"builder": "@angular-devkit/build-angular:dev-server",
63+
"options": {
64+
"browserTarget": "angular-ng:build"
65+
},
66+
"configurations": {
67+
"production": {
68+
"browserTarget": "angular-ng:build:production"
69+
}
70+
}
71+
},
72+
"extract-i18n": {
73+
"builder": "@angular-devkit/build-angular:extract-i18n",
74+
"options": {
75+
"browserTarget": "angular-ng:build"
76+
}
77+
}
78+
}
79+
}},
80+
"defaultProject": "angular-ng"
81+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# You can see what browsers were selected by your queries by running:
6+
# npx browserslist
7+
8+
last 1 chrome versions
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "angular-ng",
3+
"version": "0.0.0",
4+
"js-framework-benchmark": {
5+
"frameworkVersionFromPackage": "@angular/core",
6+
"customURL": "/dist/angular-ng/"
7+
},
8+
"scripts": {
9+
"ng": "ng",
10+
"start": "ng serve",
11+
"build": "ng build",
12+
"test": "ng test",
13+
"lint": "ng lint",
14+
"build-prod": "ng build --aot=true --prod=true",
15+
"build-dev": "ng serve"
16+
},
17+
"private": true,
18+
"dependencies": {
19+
"@angular/animations": "8.2.14",
20+
"@angular/common": "8.2.14",
21+
"@angular/compiler": "8.2.14",
22+
"@angular/core": "8.2.14",
23+
"@angular/platform-browser": "8.2.14",
24+
"@angular/platform-browser-dynamic": "8.2.14",
25+
"rxjs": "6.4.0",
26+
"tslib": "^1.10.0",
27+
"zone.js": "0.9.1"
28+
},
29+
"devDependencies": {
30+
"@angular-devkit/build-angular": "0.803.24",
31+
"@angular/cli": "8.3.24",
32+
"@angular/compiler-cli": "8.2.14",
33+
"@angular/language-service": "8.2.14",
34+
"@types/node": "8.9.4",
35+
"ts-node": "7.0.0",
36+
"tslint": "5.15.0",
37+
"typescript": "3.5.3"
38+
}
39+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<div class="container">
2+
<div class="jumbotron">
3+
<div class="row">
4+
<div class="col-md-6">
5+
<h1>Angular {{version}} keyed</h1>
6+
</div>
7+
<div class="col-md-6">
8+
<div class="col-sm-6 smallpad">
9+
<button type="button" class="btn btn-primary btn-block" id="run" (click)="run()" ref="text">Create 1,000 rows</button>
10+
</div>
11+
<div class="col-sm-6 smallpad">
12+
<button type="button" class="btn btn-primary btn-block" id="runlots" (click)="runLots()">Create 10,000 rows</button>
13+
</div>
14+
<div class="col-sm-6 smallpad">
15+
<button type="button" class="btn btn-primary btn-block" id="add" (click)="add()" ref="text">Append 1,000 rows</button>
16+
</div>
17+
<div class="col-sm-6 smallpad">
18+
<button type="button" class="btn btn-primary btn-block" id="update" (click)="update()">Update every 10th row</button>
19+
</div>
20+
<div class="col-sm-6 smallpad">
21+
<button type="button" class="btn btn-primary btn-block" id="clear" (click)="clear()">Clear</button>
22+
</div>
23+
<div class="col-sm-6 smallpad">
24+
<button type="button" class="btn btn-primary btn-block" id="swaprows" (click)="swapRows()">Swap Rows</button>
25+
</div>
26+
</div>
27+
</div>
28+
</div>
29+
<table class="table table-hover table-striped test-data">
30+
<tbody>
31+
<tr [class.danger]="item.id === selected" *ngFor="let item of data; trackBy: itemById">
32+
<td class="col-md-1">{{item.id}}</td>
33+
<td class="col-md-4">
34+
<a href="#" (click)="select(item, $event)">{{item.label}}</a>
35+
</td>
36+
<td class="col-md-1"><a href="#" (click)="delete(item, $event)"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
37+
<td class="col-md-6"></td>
38+
</tr>
39+
</tbody>
40+
</table>
41+
<span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
42+
</div>

0 commit comments

Comments
 (0)