Refactoring our application the Angular way

In this section, we will split the code we created in earlier chapters into code units, following the single responsibility principle. So, do not expect many changes in the code, apart from allocating each module in its own dedicated file. This is why we will focus more on how to split things rather than explaining each module, whose purpose you should know already. In any event, we will take a minute to discuss changes if required.

Let's begin by creating in your work folder the same directory structure we saw in the previous section. We will populate each folder with files on the go.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset