In my app module, I have defined dependencies based on the phonecat
Tutorial. This module is located in the directory app
:
app.module.js:
angular.module('phonecatApp', [
'phoneList' // (*)
]);
Within the app/phone-list
directory, there are two components:
phone-list/phone-list.module.js:
angular.module('phoneList', []);
and
phone-list/phone-list.component.js:
angular.module('phoneList').component('phoneList', {...});
When registering the module phoneList
in the first snippet at (*)
, how does AngularJS know where to locate this module? Is the mapping from phoneList
to the phone-list
-directory name a built-in feature?