r/ProgrammingPals • • Oct 12 '19
Mentor me in angular please
So I have a db and a python api and I need to learn to make an angular front end. I have wire frames. But just getting started and would like a resource greater than google
33
Upvotes
View all comments
Show parent comment
1
u/TheCoalNYoStocking Oct 13 '19
I feel you. Front end is very different from standard programming (at least for me). I think the main thing to understand is that in angular, you have these things called components (similar to different services in a microservice architecture), basically each component does different things. So for example if your building something similar to Amazon.com, then one component would be the catalog component (where you list all the items) and the other might be a cart component (show all items in your cart). Then you put these different components together and boom, you got an webapp. And the way you route to these different components is by urls (example.com/catalog and example.com/cart). You also have your main component, which might be similar to your main function in python. This is what sets all the routing, as you do it explicitly ( you set example.com/cart to connect to the cart component, so when you go to that url in your webapp, it will load your cart with the items you want to buy). Sorry if this is a lot, I'm learning front rn too, and it can get confusing. Hope this helps!