Angular for Beginners - Let's build a Tic-Tac-Toe PWA

Angular for Beginners - Let's build a Tic-Tac-Toe PWA

Fireship

4 года назад

477,581 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Raymond Schoonraad
Raymond Schoonraad - 05.10.2023 02:36

Awesome project. Thanks.

A few minor fixes:
1. In app.component.html <app-square></app-square> should change to <app-board></app-board>
2. In square.component.ts @Input() value: 'X' | 'O'; should rather be @Input() value: string;
3. In board.component.ts change this.winner = null; to this.winner = ""; and change the return null; in caclulateWinner to return "";
4. Add "strictPropertyInitialization": false under "compilerOptions":{ in the project folder/tsconfig.json file, to avoid the value error.
5. Nebular is not compatible with Angular 16 yet. Either create the app with ng new <your-project-name> --version=15 or just skip all the nebular parts (don't add the extra nb.... coding).

Ответить
Abdellah Slimani
Abdellah Slimani - 28.09.2023 13:36

should be deleted or add a note that people shouldn't waste time watching it nor coding along with you.

Ответить
It's Me
It's Me - 20.08.2023 07:57

This tutorial desperately needs a 2023 update. So much has changed.

Ответить
Brittany Morris
Brittany Morris - 20.08.2023 03:39

I just tried it, the code no longer compiles.

Ответить
Geefe Alba
Geefe Alba - 06.07.2023 18:59

I can't seem to find the Angular console anymore.

Ответить
Plegeus
Plegeus - 02.07.2023 18:14

I can't use the square component in the app's template, it says it is undefined

Ответить
Yacine Hammi
Yacine Hammi - 04.06.2023 16:32

i have one week since i started angular , i did crud project , but i failed this one , i followed every steps but still didn't understand some concepts , wish me good luck to the next projects , and if you have any advice, feel free to share it with me , thank you

Ответить
Map das Papier
Map das Papier - 13.05.2023 12:00

So so creating angular apps quickly? Yeah only if you understand what you're doing xD

Ответить
AndiBOZZ
AndiBOZZ - 09.05.2023 18:44

Please keep your stuff up to date, replace it with a new video or at least the repo

Ответить
Vadim Tikhonov
Vadim Tikhonov - 08.05.2023 19:22

Thanks

Ответить
RaMi Drkazoni
RaMi Drkazoni - 05.05.2023 16:22

what icon extancen you use in vs ?

Ответить
Harold Cabalic
Harold Cabalic - 23.04.2023 21:58

i'm in the initial step of creating a `square` component but when using Nx Console, project name is now a select list, but there are no options to select. How can I get Nx Console to recognize my project name (tic-tac-toe), or, what do I need to configure?

Ответить
Muhammed Aydoğan
Muhammed Aydoğan - 12.04.2023 09:06

swift and nice!

Ответить
Łukasz Śmigiel
Łukasz Śmigiel - 28.03.2023 00:42

Well angular console doesn't exist anymore

Ответить
Taishi Arai
Taishi Arai - 15.03.2023 08:42

I'm beginner just about 9 months into it all and just finished a javascript course, this is all new to me, this video was a tad fast paced for me but i bought the actual course on the website and im glad to say that this was broken down and slowed down so it was very clear and concise, can't wait to finish it.

Ответить
Burak Aydın
Burak Aydın - 11.03.2023 00:59

I can't see the Nx Console. It's enabled in the VS. I'm using the latest Ubuntu.

I restarted the VS. Then uninstalled the Nx Console. Restarted the VS again. Installed the Nx Console again. Nothing changed. I can't see it.

During the installation, I got "Odd numbered Node.js versions will not enter LTS status and should not be used for production." error. Then I installed 16.14.0 without uninstalling the previous one. I thought they might be conflicting. I did "sudo apt-get remove nodejs." After "which node," "rm -rf *"ed the directory. Reinstalled Node.js. Now "which node" gives the correct version. But still there is no Nx Console. Re-uninstalled the extension, restarted, re-installed. Nothing.

Any suggestion?

Ответить
royal guard
royal guard - 11.02.2023 02:34

This app is broken and doesn't work anymore

Ответить
Deniz Childir
Deniz Childir - 24.01.2023 17:14

for some reason, the github version doesn't build on windows but builds on linux as npm is unable to fix dependencies.

Ответить
Webb Hinton
Webb Hinton - 24.01.2023 01:02

Note that currently you'll need to use Angular 14, not 15, to use nebular.

Ответить
Webb Hinton
Webb Hinton - 24.01.2023 00:32

Any Windows users running running into "Error: This command is not available when running the Angular CLI outside a workspace." when using commands like ng add ? I'm able to use ng serve, but not ng add/ng run...Very confusing

Ответить
thepowderriverfarrier
thepowderriverfarrier - 01.01.2023 19:12

There are so many compile error in the github code it's not worth the effort to fix them.

Ответить
Michael Short
Michael Short - 29.12.2022 11:59

the angular console seems to take a lot longer to use than just typing the commands lol

Ответить
Skaffen
Skaffen - 01.12.2022 16:29

Not a beginner tutorial at all. Pretty disappointed.

Ответить
BasicallyJustMemes
BasicallyJustMemes - 18.11.2022 14:15

Anyone getting errors with various parts of the code, have a look at the autogenerated tsconfig.json file and replace it with the following code:
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
}

It is his code from his github.

Ответить
den7ee
den7ee - 17.11.2022 00:32

Thank you! But is not working here, i have a difficulty to declare and use variables and functions because the type definition of typescript, someone can help me please?

Ответить
Mahan Mashoof
Mahan Mashoof - 16.11.2022 15:39

add "strictPropertyInitialization": false, in tsconfig.json to avoid "...has no initializer..." problem
Thanks a lot for this video btw :)

Ответить
fernando prado
fernando prado - 09.11.2022 18:15

Does anyone have any idea on how to make it reactive to mobile?

Ответить
hugmys0ul
hugmys0ul - 03.11.2022 03:07

Can anyone help?, please?
>>>
<main>
<app-square
*ngFor="let val of squares; let i = index"
[value]="val" /* ngtsc: Type 'string' is not assignable to type '"X"' | "o"'. */
(click)="makeMove(i)">
</app-square>

</main>
>>>

Ответить
Zitch
Zitch - 07.10.2022 00:24

idk wtf happened but this shit does NOT work

Ответить
Zitch
Zitch - 07.10.2022 00:06

theres only an x in the top left corner when i load up the program????

Ответить
Kristaps
Kristaps - 06.10.2022 19:31

Picking up girls is awesome, if you know how to do it.

Ответить
My_Coding{Channel}
My_Coding{Channel} - 27.09.2022 02:37

Can someone build a coder nerd jargon translator app

Ответить
Dugtrio Ramen
Dugtrio Ramen - 13.09.2022 01:20

Lol I thought it was a Mr.Krabs pronunciation of "Nebula"

Ответить
TotallyRandom
TotallyRandom - 11.09.2022 15:26

For a beginner fase you are going way to fast tho.

Ответить
kel
kel - 08.09.2022 10:49

This was amazingly helpful, thank you so much!! ❤

Ответить
Teun
Teun - 04.09.2022 23:14

even when i copy paste the entire app dir it gives me some string error with 'X' | 'O' to string value (the variable stats called value)

Ответить
Monster Eugene
Monster Eugene - 03.09.2022 19:46

this is great and the fact I understand 80 percent of what's happening means I've come a long way. But I think it's best if I get the fundamentals completely down before I use any frame works. If this is backwards and you're a professional let me know.

Ответить
Khamarr3524
Khamarr3524 - 03.09.2022 19:02

This video is the epitome of why people hate webdev.

Half the things are skipped, config directives are missing (or defaulted /have changed). The libraries required don't like each other (couldn't install Nebular because despite manually installing dependencies it still fails because versioning I'm guessing), and there are just overall problems with the walkthrough process that honestly probably worked 2 years ago when this video was made but now you can't follow these steps. I genuinely enjoy this channel's content but this video is a definite flop at least 2 years later.

Ответить
oxwilder
oxwilder - 22.08.2022 15:32

This is probably great, but I couldn't get past setting up the NX console -- I didn't immediately see the serve option, and you kinda blew through that part

Ответить
Bruce Lee
Bruce Lee - 21.08.2022 15:30

trying this in angular 14 and nebular is unable to be installed, something about dependency error greeaaat

Ответить
Bruce Lee
Bruce Lee - 20.08.2022 12:27

very nice tutorial I like

Ответить
Maor Ar
Maor Ar - 14.07.2022 14:16

Did some one else got an error with unknown keywork 'devkit' in angular.json?

Ответить
Pranav Suryadevara
Pranav Suryadevara - 09.07.2022 15:17

I am having trouble with installing @nebular/theme in my local. Not able to add the package, tried using npm i but failed, then used --legacy-peer-deps but then got a lot of errors now. Can you please help me?

Ответить
AAAAAAAAAAA
AAAAAAAAAAA - 28.06.2022 04:50

port 4200, nice

Ответить
Giancarlo Andre Bravo Abanto
Giancarlo Andre Bravo Abanto - 27.06.2022 08:55

what a mess

Ответить
lobster-music
lobster-music - 30.05.2022 20:12

For anyone facing the problem of TS compiler complaining that 'value' is not initialized in the constructor, you can just add "strictPropertyInitialization": false in your ts config :)

Ответить
Felix
Felix - 28.05.2022 06:44

webpack to prevent js bubbling. assets folder
angular out of box solutions: cli
react: html react to data
dumb component

setup in ngOnInit
nebular is a powerful style library for angular
ngModules, to use angular in progressive way(use only parts of the framework that you currently need)
pwa

Ответить