diff --git a/angular.json b/angular.json
index a792305..95c54f0 100644
--- a/angular.json
+++ b/angular.json
@@ -20,18 +20,11 @@
"outputPath": "dist/angular-signals-course",
"index": "src/index.html",
"browser": "src/main.ts",
- "polyfills": [
- "zone.js"
- ],
+ "polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
- "assets": [
- "src/favicon.ico",
- "src/assets"
- ],
- "styles": [
- "src/styles.scss"
- ],
+ "assets": ["src/favicon.ico", "src/assets"],
+ "styles": ["src/styles.scss"],
"scripts": []
},
"configurations": {
@@ -85,19 +78,11 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
- "polyfills": [
- "zone.js",
- "zone.js/testing"
- ],
+ "polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
- "assets": [
- "src/favicon.ico",
- "src/assets"
- ],
- "styles": [
- "src/styles.scss"
- ],
+ "assets": ["src/favicon.ico", "src/assets"],
+ "styles": ["src/styles.scss"],
"scripts": []
}
}
diff --git a/server/get-courses.route.ts b/server/get-courses.route.ts
index 136f055..5e3e28b 100644
--- a/server/get-courses.route.ts
+++ b/server/get-courses.route.ts
@@ -11,18 +11,18 @@ export function getAllCourses(req: Request, res: Response) {
return;
*/
- console.log(`Called GET /api/courses`);
- setTimeout(() => {
- console.log(`Returning GET /api/courses`);
+ setTimeout(() => {
res.status(200).json({courses:Object.values(COURSES)});
- }, 1000);
+ }, 1500);
+
}
+
export function getCourseById(req: Request, res: Response) {
setTimeout(() => {
@@ -33,6 +33,6 @@ export function getCourseById(req: Request, res: Response) {
const course = courses.find(course => course.id == courseId);
res.status(200).json(course);
- })
+ }, 1500);
}
diff --git a/src/app/app.component.html b/src/app/app.component.html
index ba4e958..0261f66 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -24,18 +24,14 @@
resource() Demo
- @if(isLoggedIn()) {
-
-