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