Refactoring
-
Let’s have “fun” looking at the code inside some functions and see how we can simplify them.
-
Let’s create a simple class to make managing todos easier and better structured.
-
Let’s clean up our controller by extracting some logic to independent functions. It’s not as boring as it sounds.
-
How to convert an AngularJS controller function into a class.