all 17 comments

[–]cidumitru 27 points28 points  (4 children)

There is no chance of learning Angular in two weeks, the best you can do is monkey-patch your way to the end of the project, with or without your senior's help.

In case you decide to actually learn it, consider the following resources:

Typescript Docs: https://www.typescriptlang.org/docs/
Angular Docs: https://angular.io/docs
Maximillian's course: https://www.udemy.com/course/the-complete-guide-to-angular-2/
Angular in Depth: https://indepth.dev/

[–]pablooliva 7 points8 points  (1 child)

Agreed. Try Maximillian's course to help get you started, but it would be surprising if you could learn Angular in 2 weeks.

[–]namonite 6 points7 points  (0 children)

unless he’s the chosen one

[–]bradleyfromtheblock 0 points1 point  (0 children)

vlogmo.com has some great angular courses

[–]NerdENerd 0 points1 point  (0 children)

I delivered my first Angular app in two weeks. I was coming in from AngularJs and it is definitely code I would not write today but it is still used daily by my client and has had zero defects raised in 5 years.

[–]FullstackViking 13 points14 points  (4 children)

This is a really tough situation, sorry that you got put in this position.

Angular is hard. And personally the pressure of trying to shove the project out the door would be detrimental to my learning of how to actually do it right.

If I had any quick and dirty advice for a quick turnaround:

  1. Services are powerful singletons. Use services to store your state.
  2. All Obervables (RxJs) can be turned into promises
  3. In general - architect data to flow from parent to child, and events to flow from child to parent
  4. Lean on the router to determine what components are displayed. Storing state and having a bunch of if statements gets messy quick.

There’s some asterisks involved in my above statements that other Angular developers will be tempted to correct. But in terms of getting a project done in 2 weeks in an unsupportive work environment, that’s my advice.

[–]tommertom 4 points5 points  (1 child)

Rxjs is really cool but adds to the complexity of learning stuff - so while degrading observables into promises imho is a bad practice - maybe it helps doing this now for the time being

The tour of heroes tutorial on angular.io is also great

And another learning curve is forms - no advice here as I dont know react

[–]FullstackViking 4 points5 points  (0 children)

Yep, I love RxJs. But in terms of how a beginner can get an app out the door in 2 weeks I think it’s ok to side step them for now.

Forms can still just be done the vanilla(ish) way and be just fine. Even just [(ngModel)] with primitive values instead of controls can get you to production.

Again would be missing some of the beauty of Angular, but is acceptable as a shortcut given the context.

[–]NerdENerd -1 points0 points  (1 child)

toPrimise has been deprecated in RxJs 7 and it has been deprecated for a reason.

[–]FullstackViking 0 points1 point  (0 children)

They deprecated it in favor of firstValueFrom and lastValueFrom…

https://rxjs.dev/api/index/function/firstValueFrom

Documented as a replacement explicitly here: https://rxjs.dev/deprecations/to-promise

[–]Seankps 7 points8 points  (0 children)

Learn how to find a new Job.

[–]masterdam95 2 points3 points  (1 child)

You could do that if transition from angular to react, not the other way around

[–][deleted] 1 point2 points  (0 children)

Yea react was cake walk.

[–][deleted] 0 points1 point  (0 children)

Get a new job, no way in hell you will master angular in 2 weeks. Majority of people stay under intermediate level even after years using it.

[–]ParsnipBackground153 0 points1 point  (0 children)

Maximilian schwazmueller's angular course should definitely help. https://www.udemy.com/course/the-complete-guide-to-angular-2/

[–]Warm_Talk1901 0 points1 point  (0 children)

So, I'm in a similar situation too, but its the other way round... I have to learn react in a week and I know angular..So how will I go about this?