I followed a game tutorial after doing some reading that served as an overview of Angular- done this with a couple of frameworks, wanted to try Angular/TS to get a feel for typed languages and I've also just heard a lot about it.
https://docs.angularjs.org/guide/databinding
https://angular.io/tutorial/toh-pt0
I created the initial application structure using the Angular CLI, and learned angular components display data. I used ng new and ng serve to generate a new project and launch the application.I generated components using ng generate component.I went through all of the steps up till number 5- it took a few hours and I've been adding to it sporadically.
My overall impression of angular is, I think its great and want to continue using it! they have these things called .ts files, which are typescript files. And in these files you set a variable with properties that you can use in other places, using angulars interpolation binding syntax (which is just, the variable in double curly braces..). I learned about ngOnInit, a lifecycle hook called after creating a component...(note, ASK ABOUT LIFECYCLE HOOKS at this link
https://angular.io/guide/lifecycle-hooks#oninit)
I am about halfway through the tutorial but it was informative. I do have questions about how things bind together, it was also a bit confusing that they had be constantly re-doing old code, because they are trying to show the connection and how angular provides various shortcuts to things. Would like to discuss further.
last modified | size | ||
goals.component.css | Tue May 07 2024 04:28 am | 853B | |
goals.component.html | Tue May 07 2024 04:28 am | 702B | |
goals.component.spec.ts | Tue May 07 2024 04:28 am | 621B | |
goals.component.ts | Tue May 07 2024 04:28 am | 480B |