Skip to content

Commit 79b4941

Browse files
authored
Merge pull request #47 from manthanank:new-changes
feat: added angular app and updated readme.md
2 parents de5ea1d + 39d21a3 commit 79b4941

20 files changed

+11856
-4
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
/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

README.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Learn Angular
22

3-
<!-- ![Logo](./assets/angular.svg) -->
43
![npm](https://img.shields.io/npm/dw/learn-angular)
54
![npm](https://img.shields.io/npm/dm/learn-angular)
65
![npm](https://img.shields.io/npm/dy/learn-angular)
@@ -2358,15 +2357,36 @@ A standalone component is a type of component which is not part of any Angular m
23582357
23592358
## JIT
23602359
2361-
Just-in-Time (JIT) is a type of compilation that compiles your app in the browser at runtime.
2360+
**Just-in-Time** (JIT) is a type of compilation that compiles your app in the browser at runtime.
2361+
2362+
### Advantages of AOT
2363+
2364+
- Faster startup times as the browser only needs to execute the compiled code.
2365+
- Improved performance due to optimized and pre-compiled templates.
2366+
- Better security as the templates are already compiled and validated before deployment.
2367+
- Smaller bundle sizes since the templates are not included.
23622368
23632369
## AOT
23642370
2365-
Ahead-of-Time (AOT) is a type of compilation that compiles your app at build time.
2371+
**Ahead-of-Time** (AOT) is a type of compilation that compiles your app at build time.
2372+
2373+
### Advantages of JIT
2374+
2375+
- Faster development cycle as changes can be seen immediately.
2376+
- No build step required during development.
2377+
- More flexible for dynamic template generation.
23662378
23672379
## JIT vs AOT
23682380
2369-
<!-- ![jitvsaot](./src/assets/jitvsaot.png) -->
2381+
### Differences between AOT and JIT
2382+
2383+
| Feature | AOT | JIT |
2384+
|---|---|---|
2385+
| Compilation time | Build time | Runtime |
2386+
| Application size | Smaller | Larger |
2387+
| Application load time | Faster | Slower |
2388+
| Debugging | More difficult | Easier |
2389+
| Development | More difficult | Easier |
23702390
23712391
## Route Guards
23722392

angular.json

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"learn-angular": {
7+
"projectType": "application",
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "scss"
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/learn-angular",
21+
"index": "src/index.html",
22+
"main": "src/main.ts",
23+
"polyfills": [
24+
"zone.js"
25+
],
26+
"tsConfig": "tsconfig.app.json",
27+
"inlineStyleLanguage": "scss",
28+
"assets": [
29+
"src/favicon.ico",
30+
"src/assets"
31+
],
32+
"styles": [
33+
"src/styles.scss"
34+
],
35+
"scripts": []
36+
},
37+
"configurations": {
38+
"production": {
39+
"budgets": [
40+
{
41+
"type": "initial",
42+
"maximumWarning": "500kb",
43+
"maximumError": "1mb"
44+
},
45+
{
46+
"type": "anyComponentStyle",
47+
"maximumWarning": "2kb",
48+
"maximumError": "4kb"
49+
}
50+
],
51+
"outputHashing": "all"
52+
},
53+
"development": {
54+
"buildOptimizer": false,
55+
"optimization": false,
56+
"vendorChunk": true,
57+
"extractLicenses": false,
58+
"sourceMap": true,
59+
"namedChunks": true
60+
}
61+
},
62+
"defaultConfiguration": "production"
63+
},
64+
"serve": {
65+
"builder": "@angular-devkit/build-angular:dev-server",
66+
"configurations": {
67+
"production": {
68+
"browserTarget": "learn-angular:build:production"
69+
},
70+
"development": {
71+
"browserTarget": "learn-angular:build:development"
72+
}
73+
},
74+
"defaultConfiguration": "development"
75+
},
76+
"extract-i18n": {
77+
"builder": "@angular-devkit/build-angular:extract-i18n",
78+
"options": {
79+
"browserTarget": "learn-angular:build"
80+
}
81+
},
82+
"test": {
83+
"builder": "@angular-devkit/build-angular:karma",
84+
"options": {
85+
"polyfills": [
86+
"zone.js",
87+
"zone.js/testing"
88+
],
89+
"tsConfig": "tsconfig.spec.json",
90+
"inlineStyleLanguage": "scss",
91+
"assets": [
92+
"src/favicon.ico",
93+
"src/assets"
94+
],
95+
"styles": [
96+
"src/styles.scss"
97+
],
98+
"scripts": []
99+
}
100+
}
101+
}
102+
}
103+
},
104+
"cli": {
105+
"analytics": "afebca87-2aa0-41c0-9fae-c80838757529"
106+
}
107+
}

0 commit comments

Comments
 (0)