Skip to content

Commit 18cbb14

Browse files
Initial commit
0 parents  commit 18cbb14

22 files changed

Lines changed: 696 additions & 0 deletions

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# angular-y5mbh5
2+
3+
[Edit on StackBlitz ⚡️](https://stackblitz.com/edit/angular-y5mbh5)

angular.json

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"angular.io-example": {
7+
"projectType": "application",
8+
"schematics": {
9+
"@schematics/angular:application": {
10+
"strict": true
11+
}
12+
},
13+
"root": "",
14+
"sourceRoot": "src",
15+
"prefix": "app",
16+
"architect": {
17+
"build": {
18+
"builder": "@angular-devkit/build-angular:browser",
19+
"options": {
20+
"outputPath": "dist",
21+
"index": "src/index.html",
22+
"main": "src/main.ts",
23+
"polyfills": "src/polyfills.ts",
24+
"tsConfig": "tsconfig.app.json",
25+
"assets": [
26+
"src/favicon.ico",
27+
"src/assets"
28+
],
29+
"styles": [
30+
"src/styles.css"
31+
],
32+
"scripts": []
33+
},
34+
"configurations": {
35+
"production": {
36+
"budgets": [
37+
{
38+
"type": "initial",
39+
"maximumWarning": "500kb",
40+
"maximumError": "1mb"
41+
},
42+
{
43+
"type": "anyComponentStyle",
44+
"maximumWarning": "2kb",
45+
"maximumError": "4kb"
46+
}
47+
],
48+
"fileReplacements": [
49+
{
50+
"replace": "src/environments/environment.ts",
51+
"with": "src/environments/environment.prod.ts"
52+
}
53+
],
54+
"outputHashing": "all"
55+
},
56+
"development": {
57+
"buildOptimizer": false,
58+
"optimization": false,
59+
"vendorChunk": true,
60+
"extractLicenses": false,
61+
"sourceMap": true,
62+
"namedChunks": true
63+
}
64+
},
65+
"defaultConfiguration": "production"
66+
},
67+
"serve": {
68+
"builder": "@angular-devkit/build-angular:dev-server",
69+
"configurations": {
70+
"production": {
71+
"browserTarget": "angular.io-example:build:production"
72+
},
73+
"development": {
74+
"browserTarget": "angular.io-example:build:development"
75+
}
76+
},
77+
"defaultConfiguration": "development"
78+
},
79+
"extract-i18n": {
80+
"builder": "@angular-devkit/build-angular:extract-i18n",
81+
"options": {
82+
"browserTarget": "angular.io-example:build"
83+
}
84+
},
85+
"test": {
86+
"builder": "@angular-devkit/build-angular:karma",
87+
"options": {
88+
"main": "src/test.ts",
89+
"polyfills": "src/polyfills.ts",
90+
"tsConfig": "tsconfig.spec.json",
91+
"karmaConfig": "karma.conf.js",
92+
"assets": [
93+
"src/favicon.ico",
94+
"src/assets"
95+
],
96+
"styles": [
97+
"src/styles.css"
98+
],
99+
"scripts": []
100+
}
101+
},
102+
"lint": {
103+
"builder": "@angular-devkit/build-angular:tslint",
104+
"options": {
105+
"tsConfig": [
106+
"tsconfig.app.json",
107+
"tsconfig.spec.json",
108+
"e2e/tsconfig.json"
109+
],
110+
"exclude": [
111+
"**/node_modules/**"
112+
]
113+
}
114+
},
115+
"e2e": {
116+
"builder": "@angular-devkit/build-angular:protractor",
117+
"options": {
118+
"protractorConfig": "e2e/protractor.conf.js",
119+
"devServerTarget": "angular.io-example:serve"
120+
},
121+
"configurations": {
122+
"production": {
123+
"devServerTarget": "angular.io-example:serve:production"
124+
}
125+
}
126+
}
127+
}
128+
}
129+
},
130+
"defaultProject": "angular.io-example"
131+
}

package.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "xamroalrvyvx.angular",
3+
"version": "0.0.0",
4+
"private": true,
5+
"dependencies": {
6+
"@angular/animations": "12.1.5",
7+
"@angular/common": "12.1.5",
8+
"@angular/compiler": "12.1.5",
9+
"@angular/core": "12.1.5",
10+
"@angular/forms": "12.1.5",
11+
"@angular/platform-browser": "12.1.5",
12+
"@angular/platform-browser-dynamic": "12.1.5",
13+
"@angular/router": "12.1.5",
14+
"angular": "^1.8.2",
15+
"angular-in-memory-web-api": "0.11.0",
16+
"app": "^0.1.0",
17+
"my": "^0.3.3",
18+
"rxjs": "6.6.7",
19+
"tslib": "2.3.1",
20+
"zone.js": "0.11.4"
21+
},
22+
"scripts": {
23+
"ng": "ng",
24+
"start": "ng serve",
25+
"build": "ng build",
26+
"test": "ng test",
27+
"lint": "ng lint",
28+
"e2e": "ng e2e"
29+
},
30+
"devDependencies": {
31+
"@angular-devkit/build-angular": "~0.1100.4",
32+
"@angular/cli": "~11.0.4",
33+
"@angular/compiler-cli": "~11.0.4",
34+
"@types/jasmine": "~3.6.0",
35+
"@types/node": "^12.11.1",
36+
"codelyzer": "^6.0.0",
37+
"jasmine-core": "~3.6.0",
38+
"jasmine-spec-reporter": "~5.0.0",
39+
"karma": "~5.1.0",
40+
"karma-chrome-launcher": "~3.1.0",
41+
"karma-coverage": "~2.0.3",
42+
"karma-jasmine": "~4.0.0",
43+
"karma-jasmine-html-reporter": "^1.5.0",
44+
"protractor": "~7.0.0",
45+
"ts-node": "~8.3.0",
46+
"tslint": "~6.1.0",
47+
"typescript": "~4.0.2"
48+
}
49+
}

src/app/app.component.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
3+
4+
/*
5+
Copyright Google LLC. All Rights Reserved.
6+
Use of this source code is governed by an MIT-style license that
7+
can be found in the LICENSE file at https://angular.io/license
8+
*/

src/app/app.component.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<app-top-bar></app-top-bar>
2+
3+
<div class="container">
4+
<router-outlet></router-outlet>
5+
</div>
6+
7+
<!--
8+
Copyright Google LLC. All Rights Reserved.
9+
Use of this source code is governed by an MIT-style license that
10+
can be found in the LICENSE file at https://angular.io/license
11+
-->

src/app/app.component.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-root',
5+
templateUrl: './app.component.html',
6+
styleUrls: ['./app.component.css']
7+
})
8+
export class AppComponent {
9+
}
10+
11+
12+
/*
13+
Copyright Google LLC. All Rights Reserved.
14+
Use of this source code is governed by an MIT-style license that
15+
can be found in the LICENSE file at https://angular.io/license
16+
*/

src/app/app.module.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { NgModule } from '@angular/core';
2+
import { BrowserModule } from '@angular/platform-browser';
3+
import { RouterModule } from '@angular/router';
4+
import { ReactiveFormsModule } from '@angular/forms';
5+
6+
import { AppComponent } from './app.component';
7+
import { TopBarComponent } from './top-bar/top-bar.component';
8+
import { ProductListComponent } from './product-list/product-list.component';
9+
10+
@NgModule({
11+
imports: [
12+
BrowserModule,
13+
ReactiveFormsModule,
14+
RouterModule.forRoot([
15+
{ path: '', component: ProductListComponent },
16+
])
17+
],
18+
declarations: [
19+
AppComponent,
20+
TopBarComponent,
21+
ProductListComponent
22+
],
23+
bootstrap: [
24+
AppComponent
25+
]
26+
})
27+
export class AppModule { }
28+
29+
30+
/*
31+
Copyright Google LLC. All Rights Reserved.
32+
Use of this source code is governed by an MIT-style license that
33+
can be found in the LICENSE file at https://angular.io/license
34+
*/
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
3+
/*
4+
Copyright Google LLC. All Rights Reserved.
5+
Use of this source code is governed by an MIT-style license that
6+
can be found in the LICENSE file at https://angular.io/license
7+
*/
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<h2>Products</h2>
2+
3+
4+
<!--
5+
Copyright Google LLC. All Rights Reserved.
6+
Use of this source code is governed by an MIT-style license that
7+
can be found in the LICENSE file at https://angular.io/license
8+
-->
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { Component } from '@angular/core';
2+
3+
import { products } from '../products';
4+
5+
@Component({
6+
selector: 'app-product-list',
7+
templateUrl: './product-list.component.html',
8+
styleUrls: ['./product-list.component.css']
9+
})
10+
export class ProductListComponent {
11+
products = products;
12+
13+
share() {
14+
window.alert('The product has been shared!');
15+
}
16+
}
17+
18+
19+
/*
20+
Copyright Google LLC. All Rights Reserved.
21+
Use of this source code is governed by an MIT-style license that
22+
can be found in the LICENSE file at https://angular.io/license
23+
*/

0 commit comments

Comments
 (0)