Angular Routing & Forms based Demo application
This commit is contained in:
17
Week-04/Day_05/student-routing-form/.editorconfig
Normal file
17
Week-04/Day_05/student-routing-form/.editorconfig
Normal file
@@ -0,0 +1,17 @@
|
||||
# Editor configuration, see https://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.ts]
|
||||
quote_type = single
|
||||
ij_typescript_use_double_quotes = false
|
||||
|
||||
[*.md]
|
||||
max_line_length = off
|
||||
trim_trailing_whitespace = false
|
||||
44
Week-04/Day_05/student-routing-form/.gitignore
vendored
Normal file
44
Week-04/Day_05/student-routing-form/.gitignore
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
|
||||
|
||||
# Compiled output
|
||||
/dist
|
||||
/tmp
|
||||
/out-tsc
|
||||
/bazel-out
|
||||
|
||||
# Node
|
||||
/node_modules
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
|
||||
# IDEs and editors
|
||||
.idea/
|
||||
.project
|
||||
.classpath
|
||||
.c9/
|
||||
*.launch
|
||||
.settings/
|
||||
*.sublime-workspace
|
||||
|
||||
# Visual Studio Code
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
!.vscode/mcp.json
|
||||
.history/*
|
||||
|
||||
# Miscellaneous
|
||||
/.angular/cache
|
||||
.sass-cache/
|
||||
/connect.lock
|
||||
/coverage
|
||||
/libpeerconnection.log
|
||||
testem.log
|
||||
/typings
|
||||
__screenshots__/
|
||||
|
||||
# System files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
12
Week-04/Day_05/student-routing-form/.prettierrc
Normal file
12
Week-04/Day_05/student-routing-form/.prettierrc
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"printWidth": 100,
|
||||
"singleQuote": true,
|
||||
"overrides": [
|
||||
{
|
||||
"files": "*.html",
|
||||
"options": {
|
||||
"parser": "angular"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
4
Week-04/Day_05/student-routing-form/.vscode/extensions.json
vendored
Normal file
4
Week-04/Day_05/student-routing-form/.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
|
||||
"recommendations": ["angular.ng-template"]
|
||||
}
|
||||
20
Week-04/Day_05/student-routing-form/.vscode/launch.json
vendored
Normal file
20
Week-04/Day_05/student-routing-form/.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "ng serve",
|
||||
"type": "chrome",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "npm: start",
|
||||
"url": "http://localhost:4200/"
|
||||
},
|
||||
{
|
||||
"name": "ng test",
|
||||
"type": "chrome",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "npm: test",
|
||||
"url": "http://localhost:9876/debug.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
9
Week-04/Day_05/student-routing-form/.vscode/mcp.json
vendored
Normal file
9
Week-04/Day_05/student-routing-form/.vscode/mcp.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
// For more information, visit: https://angular.dev/ai/mcp
|
||||
"servers": {
|
||||
"angular-cli": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@angular/cli", "mcp"]
|
||||
}
|
||||
}
|
||||
}
|
||||
42
Week-04/Day_05/student-routing-form/.vscode/tasks.json
vendored
Normal file
42
Week-04/Day_05/student-routing-form/.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"type": "npm",
|
||||
"script": "start",
|
||||
"isBackground": true,
|
||||
"problemMatcher": {
|
||||
"owner": "typescript",
|
||||
"pattern": "$tsc",
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": {
|
||||
"regexp": "Changes detected"
|
||||
},
|
||||
"endsPattern": {
|
||||
"regexp": "bundle generation (complete|failed)"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "npm",
|
||||
"script": "test",
|
||||
"isBackground": true,
|
||||
"problemMatcher": {
|
||||
"owner": "typescript",
|
||||
"pattern": "$tsc",
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": {
|
||||
"regexp": "Changes detected"
|
||||
},
|
||||
"endsPattern": {
|
||||
"regexp": "bundle generation (complete|failed)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
59
Week-04/Day_05/student-routing-form/README.md
Normal file
59
Week-04/Day_05/student-routing-form/README.md
Normal file
@@ -0,0 +1,59 @@
|
||||
# StudentRoutingForm
|
||||
|
||||
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 21.2.1.
|
||||
|
||||
## Development server
|
||||
|
||||
To start a local development server, run:
|
||||
|
||||
```bash
|
||||
ng serve
|
||||
```
|
||||
|
||||
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
|
||||
|
||||
## Code scaffolding
|
||||
|
||||
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
||||
|
||||
```bash
|
||||
ng generate component component-name
|
||||
```
|
||||
|
||||
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
||||
|
||||
```bash
|
||||
ng generate --help
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
To build the project run:
|
||||
|
||||
```bash
|
||||
ng build
|
||||
```
|
||||
|
||||
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
|
||||
|
||||
## Running unit tests
|
||||
|
||||
To execute unit tests with the [Vitest](https://vitest.dev/) test runner, use the following command:
|
||||
|
||||
```bash
|
||||
ng test
|
||||
```
|
||||
|
||||
## Running end-to-end tests
|
||||
|
||||
For end-to-end (e2e) testing, run:
|
||||
|
||||
```bash
|
||||
ng e2e
|
||||
```
|
||||
|
||||
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
||||
|
||||
## Additional Resources
|
||||
|
||||
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
||||
74
Week-04/Day_05/student-routing-form/angular.json
Normal file
74
Week-04/Day_05/student-routing-form/angular.json
Normal file
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"version": 1,
|
||||
"cli": {
|
||||
"packageManager": "npm",
|
||||
"analytics": "8335aab1-62bc-466b-9946-49e892538b32"
|
||||
},
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"student-routing-form": {
|
||||
"projectType": "application",
|
||||
"schematics": {},
|
||||
"root": "",
|
||||
"sourceRoot": "src",
|
||||
"prefix": "app",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular/build:application",
|
||||
"options": {
|
||||
"browser": "src/main.ts",
|
||||
"tsConfig": "tsconfig.app.json",
|
||||
"assets": [
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "public"
|
||||
}
|
||||
],
|
||||
"styles": [
|
||||
"src/styles.css"
|
||||
]
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "500kB",
|
||||
"maximumError": "1MB"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "4kB",
|
||||
"maximumError": "8kB"
|
||||
}
|
||||
],
|
||||
"outputHashing": "all"
|
||||
},
|
||||
"development": {
|
||||
"optimization": false,
|
||||
"extractLicenses": false,
|
||||
"sourceMap": true
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
},
|
||||
"serve": {
|
||||
"builder": "@angular/build:dev-server",
|
||||
"configurations": {
|
||||
"production": {
|
||||
"buildTarget": "student-routing-form:build:production"
|
||||
},
|
||||
"development": {
|
||||
"buildTarget": "student-routing-form:build:development"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "development"
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular/build:unit-test"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
8586
Week-04/Day_05/student-routing-form/package-lock.json
generated
Normal file
8586
Week-04/Day_05/student-routing-form/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
32
Week-04/Day_05/student-routing-form/package.json
Normal file
32
Week-04/Day_05/student-routing-form/package.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "student-routing-form",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
"build": "ng build",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"test": "ng test"
|
||||
},
|
||||
"private": true,
|
||||
"packageManager": "npm@11.9.0",
|
||||
"dependencies": {
|
||||
"@angular/common": "^21.2.0",
|
||||
"@angular/compiler": "^21.2.0",
|
||||
"@angular/core": "^21.2.0",
|
||||
"@angular/forms": "^21.2.0",
|
||||
"@angular/platform-browser": "^21.2.0",
|
||||
"@angular/router": "^21.2.0",
|
||||
"rxjs": "~7.8.0",
|
||||
"tslib": "^2.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular/build": "^21.2.1",
|
||||
"@angular/cli": "^21.2.1",
|
||||
"@angular/compiler-cli": "^21.2.0",
|
||||
"jsdom": "^28.0.0",
|
||||
"prettier": "^3.8.1",
|
||||
"typescript": "~5.9.2",
|
||||
"vitest": "^4.0.8"
|
||||
}
|
||||
}
|
||||
BIN
Week-04/Day_05/student-routing-form/public/favicon.ico
Normal file
BIN
Week-04/Day_05/student-routing-form/public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1,6 @@
|
||||
import { provideRouter } from '@angular/router';
|
||||
import { routes } from './app.routes';
|
||||
|
||||
export const appConfig = {
|
||||
providers: [provideRouter(routes)]
|
||||
};
|
||||
0
Week-04/Day_05/student-routing-form/src/app/app.css
Normal file
0
Week-04/Day_05/student-routing-form/src/app/app.css
Normal file
10
Week-04/Day_05/student-routing-form/src/app/app.html
Normal file
10
Week-04/Day_05/student-routing-form/src/app/app.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<h1>Student Portal</h1>
|
||||
|
||||
<nav>
|
||||
<a routerLink="/">Home</a> |
|
||||
<a routerLink="/register">Register</a>
|
||||
</nav>
|
||||
|
||||
<hr>
|
||||
|
||||
<router-outlet></router-outlet>
|
||||
11
Week-04/Day_05/student-routing-form/src/app/app.routes.ts
Normal file
11
Week-04/Day_05/student-routing-form/src/app/app.routes.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { Home } from './home/home';
|
||||
import { RegisterComponent } from './register/register';
|
||||
|
||||
export const routes: Routes = [
|
||||
|
||||
{ path: '', component: Home },
|
||||
|
||||
{ path: 'register', component: RegisterComponent }
|
||||
|
||||
];
|
||||
23
Week-04/Day_05/student-routing-form/src/app/app.spec.ts
Normal file
23
Week-04/Day_05/student-routing-form/src/app/app.spec.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { App } from './app';
|
||||
|
||||
describe('App', () => {
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [App],
|
||||
}).compileComponents();
|
||||
});
|
||||
|
||||
it('should create the app', () => {
|
||||
const fixture = TestBed.createComponent(App);
|
||||
const app = fixture.componentInstance;
|
||||
expect(app).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should render title', async () => {
|
||||
const fixture = TestBed.createComponent(App);
|
||||
await fixture.whenStable();
|
||||
const compiled = fixture.nativeElement as HTMLElement;
|
||||
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, student-routing-form');
|
||||
});
|
||||
});
|
||||
12
Week-04/Day_05/student-routing-form/src/app/app.ts
Normal file
12
Week-04/Day_05/student-routing-form/src/app/app.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
standalone: true,
|
||||
imports: [CommonModule, RouterModule],
|
||||
templateUrl: './app.html',
|
||||
styleUrls: ['./app.css']
|
||||
})
|
||||
export class AppComponent {}
|
||||
@@ -0,0 +1,9 @@
|
||||
h2{
|
||||
text-align:center;
|
||||
color:#2c3e50;
|
||||
}
|
||||
|
||||
p{
|
||||
text-align:center;
|
||||
font-size:18px;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<h2>Welcome to Student Portal</h2>
|
||||
|
||||
<p>
|
||||
This is the home page of the application.
|
||||
Click Register to fill the student form.
|
||||
</p>
|
||||
@@ -0,0 +1,22 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { Home } from './home';
|
||||
|
||||
describe('Home', () => {
|
||||
let component: Home;
|
||||
let fixture: ComponentFixture<Home>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [Home],
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(Home);
|
||||
component = fixture.componentInstance;
|
||||
await fixture.whenStable();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
11
Week-04/Day_05/student-routing-form/src/app/home/home.ts
Normal file
11
Week-04/Day_05/student-routing-form/src/app/home/home.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
templateUrl: './home.html',
|
||||
styleUrls: ['./home.css'],
|
||||
})
|
||||
export class Home {}
|
||||
@@ -0,0 +1,46 @@
|
||||
h2{
|
||||
text-align:center;
|
||||
color :#2c3e50;
|
||||
}
|
||||
|
||||
form{
|
||||
width:350px;
|
||||
margin:auto;
|
||||
padding:20px;
|
||||
background:white;
|
||||
border-radius:8px;
|
||||
box-shadow:0 0 10px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
label{
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
input{
|
||||
width:100%;
|
||||
padding:8px;
|
||||
margin-top:5px;
|
||||
border:1px solid #ccc;
|
||||
border-radius:4px;
|
||||
}
|
||||
|
||||
button{
|
||||
margin-top:15px;
|
||||
width:100%;
|
||||
padding:10px;
|
||||
background:#3498db;
|
||||
color:white;
|
||||
border:none;
|
||||
border-radius:4px;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
button:hover{
|
||||
background:#2980b9;
|
||||
}
|
||||
|
||||
.error{
|
||||
color:red;
|
||||
font-size:13px;
|
||||
margin-top:5px;
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
<h2>Student Registration Form</h2>
|
||||
|
||||
<form #studentForm="ngForm" (ngSubmit)="onSubmit(studentForm)">
|
||||
|
||||
<!-- Name -->
|
||||
<label>Name:</label>
|
||||
<input type="text" name="name" ngModel required #name="ngModel">
|
||||
|
||||
<div class="error" *ngIf="name.invalid && name.touched">
|
||||
Name is required
|
||||
</div>
|
||||
|
||||
<br><br>
|
||||
|
||||
<!-- Email -->
|
||||
<label>Email:</label>
|
||||
<input type="email"
|
||||
name="email"
|
||||
ngModel
|
||||
required
|
||||
email
|
||||
#email="ngModel">
|
||||
|
||||
<div class="error" *ngIf="email.invalid && email.touched">
|
||||
|
||||
<div *ngIf="email.errors?.['required']">
|
||||
Email is required
|
||||
</div>
|
||||
|
||||
<div *ngIf="email.errors?.['email']">
|
||||
Enter valid email (must include @)
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<br><br>
|
||||
|
||||
<!-- Password -->
|
||||
<label>Password:</label>
|
||||
<input type="password"
|
||||
name="password"
|
||||
ngModel
|
||||
required
|
||||
minlength="8"
|
||||
#password="ngModel">
|
||||
|
||||
<div class="error" *ngIf="password.invalid && password.touched">
|
||||
|
||||
<div *ngIf="password.errors?.['required']">
|
||||
Password is required
|
||||
</div>
|
||||
|
||||
<div *ngIf="password.errors?.['minlength']">
|
||||
Password must be at least 8 characters
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<br><br>
|
||||
|
||||
<!-- Course -->
|
||||
<label>Course:</label>
|
||||
<input type="text" name="course" ngModel required #course="ngModel">
|
||||
|
||||
<div class="error" *ngIf="course.invalid && course.touched">
|
||||
Course is required
|
||||
</div>
|
||||
|
||||
<br><br>
|
||||
|
||||
<button type="submit" [disabled]="studentForm.invalid">
|
||||
Submit
|
||||
</button>
|
||||
|
||||
</form>
|
||||
@@ -0,0 +1,22 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { Register } from './register';
|
||||
|
||||
describe('Register', () => {
|
||||
let component: Register;
|
||||
let fixture: ComponentFixture<Register>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [Register],
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(Register);
|
||||
component = fixture.componentInstance;
|
||||
await fixture.whenStable();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,25 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { FormsModule, NgForm } from '@angular/forms';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-register',
|
||||
standalone: true,
|
||||
imports: [FormsModule, CommonModule],
|
||||
templateUrl: './register.html',
|
||||
styleUrl: './register.css'
|
||||
})
|
||||
export class RegisterComponent {
|
||||
|
||||
onSubmit(form: NgForm) {
|
||||
|
||||
console.log(form.value);
|
||||
|
||||
alert("Form Submitted Successfully!");
|
||||
|
||||
// reset form
|
||||
form.reset();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
13
Week-04/Day_05/student-routing-form/src/index.html
Normal file
13
Week-04/Day_05/student-routing-form/src/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>StudentRoutingForm</title>
|
||||
<base href="/">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||
</head>
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
</body>
|
||||
</html>
|
||||
6
Week-04/Day_05/student-routing-form/src/main.ts
Normal file
6
Week-04/Day_05/student-routing-form/src/main.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { bootstrapApplication } from '@angular/platform-browser';
|
||||
import { appConfig } from './app/app.config';
|
||||
import { AppComponent } from './app/app';
|
||||
|
||||
bootstrapApplication(AppComponent, appConfig)
|
||||
.catch((err) => console.error(err));
|
||||
33
Week-04/Day_05/student-routing-form/src/styles.css
Normal file
33
Week-04/Day_05/student-routing-form/src/styles.css
Normal file
@@ -0,0 +1,33 @@
|
||||
body{
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
margin:0;
|
||||
padding:0;
|
||||
background:#f4f6f8;
|
||||
}
|
||||
|
||||
h1{
|
||||
text-align:center;
|
||||
background:#2c3e50;
|
||||
color:white;
|
||||
padding:15px;
|
||||
}
|
||||
|
||||
nav{
|
||||
text-align:center;
|
||||
margin:20px;
|
||||
}
|
||||
|
||||
nav a{
|
||||
text-decoration:none;
|
||||
color:#2c3e50;
|
||||
font-weight:bold;
|
||||
margin:10px;
|
||||
}
|
||||
|
||||
nav a:hover{
|
||||
color:#3498db;
|
||||
}
|
||||
|
||||
hr{
|
||||
margin:20px;
|
||||
}
|
||||
15
Week-04/Day_05/student-routing-form/tsconfig.app.json
Normal file
15
Week-04/Day_05/student-routing-form/tsconfig.app.json
Normal file
@@ -0,0 +1,15 @@
|
||||
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
||||
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./out-tsc/app",
|
||||
"types": []
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"src/**/*.spec.ts"
|
||||
]
|
||||
}
|
||||
33
Week-04/Day_05/student-routing-form/tsconfig.json
Normal file
33
Week-04/Day_05/student-routing-form/tsconfig.json
Normal file
@@ -0,0 +1,33 @@
|
||||
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
||||
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
||||
{
|
||||
"compileOnSave": false,
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
"noImplicitOverride": true,
|
||||
"noPropertyAccessFromIndexSignature": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"skipLibCheck": true,
|
||||
"isolatedModules": true,
|
||||
"experimentalDecorators": true,
|
||||
"importHelpers": true,
|
||||
"target": "ES2022",
|
||||
"module": "preserve"
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"enableI18nLegacyMessageIdFormat": false,
|
||||
"strictInjectionParameters": true,
|
||||
"strictInputAccessModifiers": true,
|
||||
"strictTemplates": true
|
||||
},
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.app.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
15
Week-04/Day_05/student-routing-form/tsconfig.spec.json
Normal file
15
Week-04/Day_05/student-routing-form/tsconfig.spec.json
Normal file
@@ -0,0 +1,15 @@
|
||||
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
||||
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./out-tsc/spec",
|
||||
"types": [
|
||||
"vitest/globals"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.d.ts",
|
||||
"src/**/*.spec.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user