Also, we will see a different way to load the content using the
$resource service in our controller function.
The baseline code for this recipe is the same as in the previous chapter. We just need to create additional files.
For the purpose of this book, we will place the new directive in the same file as the previous one. In a real application, we strongly recommend the use of one file per directive.