Recently, I've come across code that looks like this:
angular.module('app.controllers')
This pattern has appeared in a few tutorials I've read. However, the purpose of the .controllers
within the module name is unclear to me. I've tried searching for information but haven't found any clear explanations.
When attempting to access it via my console, I don't receive any results.
So, I have a couple of questions:
- What does the
.controllers
signify in the context of.module("app.controllers")
? - Are there other similar suffixes that I should take note of?