Continuing from my previous post about advanced component communication with Angular’s
require mechanism, I decided to try and walkthrough such an example refactoring, based on real code I’ve seen multiple times.
This shows the actual steps you need to take to change existing code to use
require and also shares some of my philosophy on when it should be used.
This is my first video ever, and I’d love to hear your feedback!
The source code for the before and after states is available on GitHub.
You want to do Angular the right way.
You hate spending time working on a project, only to find it’s completely wrong a month later.
But, as you try to get things right, you end up staring at the blinking cursor in your IDE, not sure what to type.
Every line of code you write means making decisions, and it’s paralyzing.
You look at blog posts, tutorials, videos, but each is a bit different.
Now you need to reverse engineer every advice to see what version of Angular it was written for, how updated it is, and whether it fits the current way of doing things.
What if you knew the Angular Way of doing things?
Imagine knocking down your tasks and spending your brain cycles on your product’s core.
Wouldn’t it be nice to know Angular like a second language?
You can write modern, clean and future-ready Angular right now.
Sign up below and get more of these helpful posts, free!
Always up to date and I’ve already done all the research for you.
And be the first the hear about my Modern Angular 1.x book – writing future proof Angular right now.