Let's go home and try from there.
8 |├── README.md ├── 1.Intro ├── demo-app │ ├── src │ │ ├── app │ │ │ ├── app.component.css │ │ │ ├── home │ │ │ │ ├── home.component.css │ │ │ │ ├── home.component.ts │ │ │ │ ├── home.component.html │ │ │ │ └── home.component.spec.ts │ │ │ ├── app.routes.ts │ │ │ ├── app.component.html │ │ │ ├── app.config.server.ts │ │ │ ├── app.component.ts │ │ │ ├── app.config.ts │ │ │ └── app.component.spec.ts │ │ ├── styles.css │ │ ├── main.ts │ │ ├── main.server.ts │ │ └── index.html │ ├── public │ │ └── favicon.ico │ ├── .vscode │ │ ├── extensions.json │ │ ├── launch.json │ │ └── tasks.json │ ├── .editorconfig │ ├── tsconfig.spec.json │ ├── tsconfig.app.json │ ├── .gitignore │ ├── tsconfig.json │ └── README.md └── MPA │ ├── about.html │ ├── contacts.html │ └── index.html ├── 10.Ngrx ├── demo-app │ ├── src │ │ ├── app │ │ │ ├── app.component.css │ │ │ ├── post │ │ │ │ ├── post.component.css │ │ │ │ ├── type.ts │ │ │ │ ├── post.type.ts │ │ │ │ ├── post.component.html │ │ │ │ ├── post.action.ts │ │ │ │ ├── post.reducer.ts │ │ │ │ └── post.component.ts │ │ │ ├── counter │ │ │ │ ├── counter.component.css │ │ │ │ ├── counter.component.html │ │ │ │ ├── counter.action.ts │ │ │ │ ├── counter.reducer.ts │ │ │ │ └── counter.component.ts │ │ │ ├── translate │ │ │ │ ├── translate.component.css │ │ │ │ ├── translate.component.html │ │ │ │ ├── translate.reducer.ts │ │ │ │ └── translate.component.ts │ │ │ ├── redux-simpleflow │ │ │ │ ├── redux-simpleflow.component.css │ │ │ │ └── redux-simpleflow.component.html │ │ │ ├── app.routes.ts │ │ │ ├── app.component.html │ │ │ ├── app.component.ts │ │ │ └── app.config.ts │ │ ├── styles.css │ │ ├── main.ts │ │ └── index.html │ ├── public │ │ └── favicon.ico │ ├── .vscode │ │ ├── extensions.json │ │ ├── launch.json │ │ └── tasks.json │ ├── .editorconfig │ ├── tsconfig.app.json │ ├── tsconfig.spec.json │ ├── .gitignore │ ├── tsconfig.json │ └── README.md ├── comp0.png ├── comp1.png └── comp2.png ├── 9.Pipes └── demo-app │ ├── src │ ├── app │ │ ├── app.component.css │ │ ├── home │ │ │ ├── home.component.css │ │ │ ├── home.component.html │ │ │ └── home.component.ts │ │ ├── lazy │ │ │ ├── lazy.component.css │ │ │ ├── lazy.component.html │ │ │ └── lazy.component.ts │ │ ├── constants.ts │ │ ├── app.routes.ts │ │ ├── reduce.pipe.ts │ │ ├── app.component.html │ │ ├── user.service.ts │ │ ├── app.config.ts │ │ ├── http.interceptor.ts │ │ └── app.component.spec.ts │ ├── styles.css │ └── index.html │ ├── public │ └── favicon.ico │ ├── .vscode │ ├── extensions.json │ ├── launch.json │ └── tasks.json │ ├── .editorconfig │ ├── tsconfig.app.json │ ├── tsconfig.spec.json │ ├── .gitignore │ ├── tsconfig.json │ ├── README.md │ └── package.json ├── 0.Workshop ├── workshop │ ├── src │ │ ├── app │ │ │ ├── app.component.css │ │ │ ├── authenticate │ │ │ │ ├── authenticate.component.css │ │ │ │ ├── authenticate.component.html │ │ │ │ └── authenticate.component.ts │ │ │ ├── constants.ts │ │ │ ├── core │ │ │ │ ├── error-msg │ │ │ │ │ ├── error-msg.component.html │ │ │ │ │ ├── error-msg.service.ts │ │ │ │ │ ├── error-msg.component.css │ │ │ │ │ └── error-msg.component.ts │ │ │ │ ├── footer │ │ │ │ │ ├── footer.component.html │ │ │ │ │ ├── footer.component.css │ │ │ │ │ └── footer.component.ts │ │ │ │ └── header │ │ │ │ │ ├── header.component.ts │ │ │ │ │ └── header.component.html │ │ │ ├── shared │ │ │ │ ├── loader │ │ │ │ │ ├── loader.component.html │ │ │ │ │ ├── loader.component.ts │ │ │ │ │ └── loader.component.css │ │ │ │ └── pipes │ │ │ │ │ ├── elapsed-time.pipe.ts │ │ │ │ │ └── slice.pipe.ts │ │ │ ├── app.component.html │ │ │ ├── main │ │ │ │ ├── main.component.html │ │ │ │ ├── main.component.css │ │ │ │ └── main.component.ts │ │ │ ├── types │ │ │ │ ├── post.ts │ │ │ │ ├── theme.ts │ │ │ │ └── user.ts │ │ │ ├── error │ │ │ │ ├── error.component.html │ │ │ │ ├── error.component.ts │ │ │ │ └── error.component.css │ │ │ ├── utils │ │ │ │ ├── email.validator.ts │ │ │ │ └── match-passwords.validator.ts │ │ │ ├── home │ │ │ │ ├── home.component.ts │ │ │ │ └── home.component.html │ │ │ ├── app.config.ts │ │ │ ├── posts-list │ │ │ │ ├── posts-list.component.html │ │ │ │ ├── posts-list.component.ts │ │ │ │ └── posts-list.component.css │ │ │ ├── guards │ │ │ │ └── auth.guard.ts │ │ │ ├── app.component.ts │ │ │ ├── directives │ │ │ │ └── email.directive.ts │ │ │ ├── theme │ │ │ │ ├── add-theme │ │ │ │ │ └── add-theme.component.ts │ │ │ │ └── themes-list │ │ │ │ │ └── themes-list.component.ts │ │ │ ├── user │ │ │ │ └── login │ │ │ │ │ └── login.component.ts │ │ │ └── app.interceptor.ts │ │ ├── environments │ │ │ ├── environment.ts │ │ │ └── environment.development.ts │ │ ├── main.ts │ │ └── index.html │ ├── public │ │ ├── logo.png │ │ ├── favicon.ico │ │ └── profile.png │ ├── .vscode │ │ ├── extensions.json │ │ ├── launch.json │ │ └── tasks.json │ ├── .editorconfig │ ├── tsconfig.app.json │ ├── tsconfig.spec.json │ ├── .gitignore │ ├── tsconfig.json │ └── README.md ├── Rest-api │ ├── .gitignore │ ├── app-config.js │ ├── .gitattributes │ ├── utils │ │ ├── index.js │ │ ├── errHandler.js │ │ └── jwt.js │ ├── controllers │ │ └── index.js │ ├── models │ │ ├── tokenBlacklistModel.js │ │ ├── index.js │ │ ├── postModel.js │ │ └── themeModel.js │ ├── config │ │ ├── db.js │ │ ├── config.js │ │ └── express.js │ ├── router │ │ ├── posts.js │ │ ├── likes.js │ │ ├── users.js │ │ ├── test.js │ │ ├── index.js │ │ └── themes.js │ ├── .vscode │ │ └── launch.json │ ├── index.js │ └── package.json ├── API-Endpoints.png └── resources │ ├── forum │ ├── posts.bson │ ├── themes.bson │ ├── users.bson │ ├── posts.metadata.json │ ├── themes.metadata.json │ └── users.metadata.json │ └── views │ ├── images │ └── logo.png │ ├── responsive.css │ ├── reset.css │ └── layout.css ├── 2.Components └── demo-app │ ├── src │ ├── app │ │ ├── app.component.css │ │ ├── user-list │ │ │ ├── user-item │ │ │ │ ├── user-item.component.css │ │ │ │ ├── user-item.component.html │ │ │ │ ├── user-item.component.ts │ │ │ │ └── user-item.component.spec.ts │ │ │ ├── types.ts │ │ │ ├── user-list.component.css │ │ │ ├── user-list.component.html │ │ │ ├── user-list.component.ts │ │ │ └── user-list.component.spec.ts │ │ ├── footer │ │ │ ├── footer.component.html │ │ │ ├── footer.component.css │ │ │ └── footer.component.ts │ │ ├── app.routes.ts │ │ ├── app.component.html │ │ ├── test-demo │ │ │ ├── popup │ │ │ │ ├── popup.component.css │ │ │ │ ├── popup.component.html │ │ │ │ ├── popup.component.spec.ts │ │ │ │ └── popup.component.ts │ │ │ ├── test-demo.component.html │ │ │ ├── test-demo.component.spec.ts │ │ │ ├── test-demo.component.ts │ │ │ └── test-demo.component.css │ │ ├── navigation-bar │ │ │ ├── navigation-bar.component.ts │ │ │ ├── navigation-bar.component.css │ │ │ └── navigation-bar.component.html │ │ ├── app.config.ts │ │ ├── app.component.ts │ │ └── app.component.spec.ts │ ├── styles.css │ ├── main.ts │ └── index.html │ ├── public │ └── favicon.ico │ ├── .vscode │ ├── extensions.json │ ├── launch.json │ └── tasks.json │ ├── .editorconfig │ ├── tsconfig.app.json │ ├── tsconfig.spec.json │ ├── .gitignore │ ├── tsconfig.json │ ├── README.md │ └── package.json ├── 3.CD,SOLID,Services └── demo-app │ ├── src │ ├── app │ │ ├── app.component.css │ │ ├── user-list │ │ │ ├── user-item │ │ │ │ ├── user-item.component.css │ │ │ │ ├── user-item.component.html │ │ │ │ └── user-item.component.ts │ │ │ ├── user-list.component.css │ │ │ ├── user-list.component.html │ │ │ ├── user-list.component.ts │ │ │ └── user.service.ts │ │ ├── app.routes.ts │ │ ├── app.component.html │ │ ├── app.config.ts │ │ ├── monkey-patching-example.ts │ │ ├── types.ts │ │ └── app.component.spec.ts │ ├── styles.css │ ├── main.ts │ └── index.html │ ├── public │ └── favicon.ico │ ├── .vscode │ ├── extensions.json │ ├── launch.json │ └── tasks.json │ ├── .editorconfig │ ├── tsconfig.app.json │ ├── tsconfig.spec.json │ ├── .gitignore │ ├── tsconfig.json │ ├── README.md │ └── package.json ├── 5.Modules and routing ├── demo-modules-app │ ├── src │ │ ├── assets │ │ │ └── .gitkeep │ │ ├── app │ │ │ ├── app.component.css │ │ │ ├── user │ │ │ │ ├── user.component.css │ │ │ │ ├── user.component.html │ │ │ │ ├── user.component.ts │ │ │ │ ├── user.service.ts │ │ │ │ └── user.module.ts │ │ │ ├── header │ │ │ │ ├── header.component.html │ │ │ │ ├── header.component.ts │ │ │ │ └── header.module.ts │ │ │ ├── app.component.html │ │ │ ├── app-routing.module.ts │ │ │ ├── app.component.ts │ │ │ ├── common.module.ts │ │ │ ├── app.module.ts │ │ │ └── app.component.spec.ts │ │ ├── styles.css │ │ ├── favicon.ico │ │ ├── main.ts │ │ └── index.html │ ├── .vscode │ │ ├── extensions.json │ │ ├── launch.json │ │ └── tasks.json │ ├── tsconfig.app.json │ ├── tsconfig.spec.json │ ├── .editorconfig │ ├── .gitignore │ ├── tsconfig.json │ ├── README.md │ └── package.json └── demo-standalone-app │ ├── src │ ├── app │ │ ├── app.component.css │ │ ├── home │ │ │ ├── home.component.css │ │ │ ├── home.component.html │ │ │ └── home.component.ts │ │ ├── wrapper │ │ │ ├── wrapper.component.css │ │ │ ├── wrapper.component.html │ │ │ └── wrapper.component.ts │ │ ├── users │ │ │ ├── user-details │ │ │ │ ├── user-details.component.css │ │ │ │ ├── user-details.component.html │ │ │ │ ├── user-details.resolver.ts │ │ │ │ └── user-details.component.ts │ │ │ ├── users.component.css │ │ │ ├── users.component.html │ │ │ ├── users.guard.ts │ │ │ ├── users.service.ts │ │ │ └── users.component.ts │ │ ├── app.component.html │ │ ├── error-page │ │ │ ├── error-page.component.html │ │ │ ├── error-page.component.css │ │ │ ├── error-page.component.ts │ │ │ └── error-page.component.spec.ts │ │ ├── navigation-bar │ │ │ ├── navigation-bar.component.html │ │ │ ├── navigation-bar.component.ts │ │ │ └── navigation-bar.component.css │ │ ├── types │ │ │ └── user.ts │ │ ├── app.component.ts │ │ └── app.routes.ts │ ├── styles.css │ ├── main.ts │ └── index.html │ ├── public │ └── favicon.ico │ ├── .vscode │ ├── extensions.json │ ├── launch.json │ └── tasks.json │ ├── .editorconfig │ ├── tsconfig.app.json │ ├── tsconfig.spec.json │ ├── .gitignore │ ├── tsconfig.json │ ├── README.md │ └── package.json └── 7.Directives and Forms └── demo-app ├── src ├── app │ ├── app.component.css │ ├── home │ │ ├── home.component.css │ │ └── home.component.ts │ ├── login │ │ ├── login.component.css │ │ └── login.component.ts │ ├── register │ │ ├── register.component.css │ │ └── register.component.ts │ ├── app.component.html │ ├── app.component.ts │ ├── app.config.ts │ ├── app.routes.ts │ └── directives │ │ ├── my-router-link.directive.ts │ │ ├── max-count.directive.ts │ │ └── my-structural.directive.ts ├── styles.css ├── main.ts └── index.html ├── public └── favicon.ico ├── .vscode ├── extensions.json ├── launch.json └── tasks.json ├── .editorconfig ├── tsconfig.app.json ├── tsconfig.spec.json ├── .gitignore ├── tsconfig.json └── README.md /README.md: -------------------------------------------------------------------------------- 1 | Softuni-Angular-Oct-2024 2 | -------------------------------------------------------------------------------- /1.Intro/demo-app/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /10.Ngrx/demo-app/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /9.Pipes/demo-app/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /0.Workshop/workshop/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /1.Intro/demo-app/src/app/home/home.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /10.Ngrx/demo-app/src/app/post/post.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /2.Components/demo-app/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /9.Pipes/demo-app/src/app/home/home.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /9.Pipes/demo-app/src/app/lazy/lazy.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /10.Ngrx/demo-app/src/app/counter/counter.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /10.Ngrx/demo-app/src/app/translate/translate.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3.CD,SOLID,Services/demo-app/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-modules-app/src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /7.Directives and Forms/demo-app/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /0.Workshop/Rest-api/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /.env 3 | -------------------------------------------------------------------------------- /7.Directives and Forms/demo-app/src/app/home/home.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /0.Workshop/workshop/src/app/authenticate/authenticate.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-modules-app/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-standalone-app/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /7.Directives and Forms/demo-app/src/app/login/login.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /10.Ngrx/demo-app/src/app/redux-simpleflow/redux-simpleflow.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /2.Components/demo-app/src/app/user-list/user-item/user-item.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-modules-app/src/app/user/user.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-standalone-app/src/app/home/home.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /7.Directives and Forms/demo-app/src/app/register/register.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /9.Pipes/demo-app/src/app/home/home.component.html: -------------------------------------------------------------------------------- 1 |
home works!
2 | -------------------------------------------------------------------------------- /9.Pipes/demo-app/src/app/lazy/lazy.component.html: -------------------------------------------------------------------------------- 1 |lazy works!
2 | -------------------------------------------------------------------------------- /0.Workshop/workshop/src/app/constants.ts: -------------------------------------------------------------------------------- 1 | export const DOMAINS = ['bg', 'com']; 2 | -------------------------------------------------------------------------------- /3.CD,SOLID,Services/demo-app/src/app/user-list/user-item/user-item.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-standalone-app/src/app/wrapper/wrapper.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /10.Ngrx/comp0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsvetis/Angular-Oct-2024/HEAD/10.Ngrx/comp0.png -------------------------------------------------------------------------------- /10.Ngrx/comp1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsvetis/Angular-Oct-2024/HEAD/10.Ngrx/comp1.png -------------------------------------------------------------------------------- /10.Ngrx/comp2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsvetis/Angular-Oct-2024/HEAD/10.Ngrx/comp2.png -------------------------------------------------------------------------------- /5.Modules and routing/demo-modules-app/src/app/user/user.component.html: -------------------------------------------------------------------------------- 1 |user works!
2 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-standalone-app/src/app/home/home.component.html: -------------------------------------------------------------------------------- 1 |home works!
2 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-standalone-app/src/app/users/user-details/user-details.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-modules-app/src/app/header/header.component.html: -------------------------------------------------------------------------------- 1 |HEADER works!
2 | -------------------------------------------------------------------------------- /10.Ngrx/demo-app/src/app/redux-simpleflow/redux-simpleflow.component.html: -------------------------------------------------------------------------------- 1 |redux-simpleflow works!
2 | -------------------------------------------------------------------------------- /2.Components/demo-app/src/app/footer/footer.component.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /9.Pipes/demo-app/src/app/constants.ts: -------------------------------------------------------------------------------- 1 | export const API_URL = 'https://jsonplaceholder.typicode.com'; 2 | -------------------------------------------------------------------------------- /7.Directives and Forms/demo-app/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 |{{ user?.name }} - {{ user?.email }}
2 | -------------------------------------------------------------------------------- /9.Pipes/demo-app/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsvetis/Angular-Oct-2024/HEAD/9.Pipes/demo-app/public/favicon.ico -------------------------------------------------------------------------------- /0.Workshop/Rest-api/.gitattributes: -------------------------------------------------------------------------------- 1 | *.css linguist-detectable=false 2 | *.html linguist-detectable=false 3 | *.js linguist-detectable=true -------------------------------------------------------------------------------- /0.Workshop/resources/forum/posts.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsvetis/Angular-Oct-2024/HEAD/0.Workshop/resources/forum/posts.bson -------------------------------------------------------------------------------- /0.Workshop/resources/forum/themes.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsvetis/Angular-Oct-2024/HEAD/0.Workshop/resources/forum/themes.bson -------------------------------------------------------------------------------- /0.Workshop/resources/forum/users.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsvetis/Angular-Oct-2024/HEAD/0.Workshop/resources/forum/users.bson -------------------------------------------------------------------------------- /0.Workshop/workshop/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsvetis/Angular-Oct-2024/HEAD/0.Workshop/workshop/public/favicon.ico -------------------------------------------------------------------------------- /0.Workshop/workshop/public/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsvetis/Angular-Oct-2024/HEAD/0.Workshop/workshop/public/profile.png -------------------------------------------------------------------------------- /0.Workshop/workshop/src/app/shared/loader/loader.component.html: -------------------------------------------------------------------------------- 1 |User Details:
2 | @if (user) { 3 |Congratulations! Your app is running. 🎉
4 | 5 |{{ msg$ | async }}
2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /2.Components/demo-app/src/app/user-list/user-list.component.css: -------------------------------------------------------------------------------- 1 | #wrapper { 2 | width: 50%; 3 | height: 200px; 4 | padding: 20px; 5 | border: 1px solid grey; 6 | border-radius: 20px; 7 | margin: 30px auto; 8 | } 9 | -------------------------------------------------------------------------------- /0.Workshop/workshop/src/app/main/main.component.css: -------------------------------------------------------------------------------- 1 | .container { 2 | width: 90%; 3 | margin: auto; 4 | padding-bottom: 4.5em; 5 | display: flex; 6 | align-items: flex-start; 7 | justify-content: space-evenly; 8 | } 9 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-standalone-app/src/app/error-page/error-page.component.css: -------------------------------------------------------------------------------- 1 | .error-msg { 2 | display: flex; 3 | justify-content: center; 4 | align-items: center; 5 | font-size: 32px; 6 | margin-top: 20px; 7 | } 8 | -------------------------------------------------------------------------------- /0.Workshop/workshop/src/app/core/footer/footer.component.html: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /2.Components/demo-app/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | body, 3 | html, 4 | * { 5 | margin: 0; 6 | padding: 0; 7 | } 8 | 9 | .nav-bar { 10 | color: yellow; 11 | } 12 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-standalone-app/src/app/wrapper/wrapper.component.html: -------------------------------------------------------------------------------- 1 |counter works!: {{ counter$ | async }}
2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-standalone-app/src/app/navigation-bar/navigation-bar.component.html: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-modules-app/src/app/header/header.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-header', 5 | templateUrl: './header.component.html', 6 | }) 7 | export class HeaderComponent {} 8 | -------------------------------------------------------------------------------- /2.Components/demo-app/src/app/footer/footer.component.css: -------------------------------------------------------------------------------- 1 | .footer { 2 | width: 100%; 3 | height: 30px; 4 | padding: 10px; 5 | background-color: darkslategrey; 6 | color: #fff; 7 | position: absolute; 8 | bottom: 0; 9 | left: 0; 10 | } 11 | -------------------------------------------------------------------------------- /3.CD,SOLID,Services/demo-app/src/app/user-list/user-list.component.css: -------------------------------------------------------------------------------- 1 | .wrapper { 2 | width: 100%; 3 | border: 1px solid black; 4 | display: flex; 5 | flex-direction: column; 6 | justify-content: center; 7 | align-items: center; 8 | margin: 10px 0; 9 | } 10 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-modules-app/src/main.ts: -------------------------------------------------------------------------------- 1 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 2 | 3 | import { AppModule } from './app/app.module'; 4 | 5 | 6 | platformBrowserDynamic().bootstrapModule(AppModule) 7 | .catch(err => console.error(err)); 8 | -------------------------------------------------------------------------------- /5.Modules and routing/demo-modules-app/src/app/user/user.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-user', 5 | templateUrl: './user.component.html', 6 | styleUrls: ['./user.component.css'], 7 | }) 8 | export class UserComponent {} 9 | -------------------------------------------------------------------------------- /1.Intro/demo-app/src/main.ts: -------------------------------------------------------------------------------- 1 | import { bootstrapApplication } from '@angular/platform-browser'; 2 | import { appConfig } from './app/app.config'; 3 | import { AppComponent } from './app/app.component'; 4 | 5 | bootstrapApplication(AppComponent, appConfig) 6 | .catch((err) => console.error(err)); 7 | -------------------------------------------------------------------------------- /10.Ngrx/demo-app/src/main.ts: -------------------------------------------------------------------------------- 1 | import { bootstrapApplication } from '@angular/platform-browser'; 2 | import { appConfig } from './app/app.config'; 3 | import { AppComponent } from './app/app.component'; 4 | 5 | bootstrapApplication(AppComponent, appConfig) 6 | .catch((err) => console.error(err)); 7 | -------------------------------------------------------------------------------- /0.Workshop/workshop/src/main.ts: -------------------------------------------------------------------------------- 1 | import { bootstrapApplication } from '@angular/platform-browser'; 2 | import { appConfig } from './app/app.config'; 3 | import { AppComponent } from './app/app.component'; 4 | 5 | bootstrapApplication(AppComponent, appConfig) 6 | .catch((err) => console.error(err)); 7 | -------------------------------------------------------------------------------- /2.Components/demo-app/src/main.ts: -------------------------------------------------------------------------------- 1 | import { bootstrapApplication } from '@angular/platform-browser'; 2 | import { appConfig } from './app/app.config'; 3 | import { AppComponent } from './app/app.component'; 4 | 5 | bootstrapApplication(AppComponent, appConfig) 6 | .catch((err) => console.error(err)); 7 | -------------------------------------------------------------------------------- /0.Workshop/Rest-api/controllers/index.js: -------------------------------------------------------------------------------- 1 | const authController = require('./auth'); 2 | const themeController = require('./themeController'); 3 | const postController = require('./postController'); 4 | 5 | module.exports = { 6 | authController, 7 | themeController, 8 | postController, 9 | } -------------------------------------------------------------------------------- /0.Workshop/Rest-api/models/tokenBlacklistModel.js: -------------------------------------------------------------------------------- 1 | const mongoose = require('mongoose'); 2 | 3 | const tokenBlacklistSchema = new mongoose.Schema({ 4 | token: String, 5 | }, { timestamps: { createdAt: 'created_at' } }); 6 | 7 | 8 | module.exports = mongoose.model('TokenBlacklist', tokenBlacklistSchema); -------------------------------------------------------------------------------- /3.CD,SOLID,Services/demo-app/src/app/user-list/user-list.component.html: -------------------------------------------------------------------------------- 1 |This is my user list:
3 | 4 | @for (user of usersList; track $index) { 5 |home works!
2 |home works!
3 |home works!
4 |home works!
5 |home works!
6 |home works!
7 |home works!
8 |home works!
9 |home works!
10 |home works!
11 |home works!
12 |home works!
13 | -------------------------------------------------------------------------------- /9.Pipes/demo-app/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | standalone: true, 6 | imports: [], 7 | templateUrl: './home.component.html', 8 | styleUrl: './home.component.css' 9 | }) 10 | export class HomeComponent { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /0.Workshop/workshop/src/app/types/post.ts: -------------------------------------------------------------------------------- 1 | import { Theme } from './theme'; 2 | import { User } from './user'; 3 | 4 | export interface Post { 5 | likes: string[]; 6 | _id: string; 7 | text: string; 8 | userId: User; 9 | themeId: Theme; 10 | created_at: string; 11 | updatedAt: string; 12 | __v: number; 13 | } 14 | -------------------------------------------------------------------------------- /1.Intro/MPA/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |Loading....
10 | } 11 |