Skip to content

Commit e9806d9

Browse files
committed
Add demo considering route changes and OnPush change detection.
1 parent 367b7bf commit e9806d9

25 files changed

+13911
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ with.
1010

1111
## My JavaScript Demos - I Love JavaScript!
1212

13+
* [Route Changes With OnPush Change Detection In Angular 18(https://bennadel.github.io/JavaScript-Demos/demos/on-push-route-change-angular18/dist)
1314
* [Signals And Array Mutability In Angular 18](https://bennadel.github.io/JavaScript-Demos/demos/signal-array-angular18/dist)
1415
* [Exploring Lazy Evaluation Of Signals In Angular 18](https://bennadel.github.io/JavaScript-Demos/demos/signal-timing-angular18/dist)
1516
* [Creating A Transient View Helper In Angular 18](https://bennadel.github.io/JavaScript-Demos/demos/view-helper-angular18/dist)
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
2+
3+
# Compiled output
4+
# /dist -- needed since I'm pushing this stuff to GitHub pages.
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
.history/*
30+
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
34+
/connect.lock
35+
/coverage
36+
/libpeerconnection.log
37+
testem.log
38+
/typings
39+
40+
# System files
41+
.DS_Store
42+
Thumbs.db
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"app": {
7+
"projectType": "application",
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "less"
11+
}
12+
},
13+
"root": "",
14+
"sourceRoot": "src",
15+
"prefix": "app",
16+
"architect": {
17+
"build": {
18+
"builder": "@angular-devkit/build-angular:application",
19+
"options": {
20+
"outputPath": {
21+
"base": "dist",
22+
"browser": ""
23+
},
24+
"index": "src/index.html",
25+
"browser": "src/main.ts",
26+
"polyfills": [
27+
"zone.js"
28+
],
29+
"tsConfig": "tsconfig.app.json",
30+
"inlineStyleLanguage": "less",
31+
"assets": [
32+
{
33+
"glob": "**/*",
34+
"input": "public"
35+
}
36+
],
37+
"styles": [
38+
"src/styles.less"
39+
],
40+
"scripts": []
41+
},
42+
"configurations": {
43+
"production": {
44+
"budgets": [
45+
{
46+
"type": "initial",
47+
"maximumWarning": "500kB",
48+
"maximumError": "1MB"
49+
},
50+
{
51+
"type": "anyComponentStyle",
52+
"maximumWarning": "2kB",
53+
"maximumError": "4kB"
54+
}
55+
],
56+
"outputHashing": "all"
57+
},
58+
"development": {
59+
"optimization": false,
60+
"extractLicenses": false,
61+
"sourceMap": true
62+
}
63+
},
64+
"defaultConfiguration": "production"
65+
},
66+
"serve": {
67+
"builder": "@angular-devkit/build-angular:dev-server",
68+
"configurations": {
69+
"production": {
70+
"buildTarget": "app:build:production"
71+
},
72+
"development": {
73+
"buildTarget": "app:build:development"
74+
}
75+
},
76+
"defaultConfiguration": "development"
77+
},
78+
"extract-i18n": {
79+
"builder": "@angular-devkit/build-angular:extract-i18n"
80+
},
81+
"test": {
82+
"builder": "@angular-devkit/build-angular:karma",
83+
"options": {
84+
"polyfills": [
85+
"zone.js",
86+
"zone.js/testing"
87+
],
88+
"tsConfig": "tsconfig.spec.json",
89+
"inlineStyleLanguage": "less",
90+
"assets": [
91+
{
92+
"glob": "**/*",
93+
"input": "public"
94+
}
95+
],
96+
"styles": [
97+
"src/styles.less"
98+
],
99+
"scripts": []
100+
}
101+
}
102+
}
103+
}
104+
},
105+
"cli": {
106+
"analytics": "2168fbca-b81d-47f4-a129-d9947dd3c82c"
107+
}
108+
}

0 commit comments

Comments
 (0)