Skip to content

Question about the app module declaration #2

@nikmartin

Description

@nikmartin

I'm curious about this code:

angular.module('popup', [
  'popup.services',
  'popup.controllers'
]);

Where does the dotted notation for the module dependencies come from, and what does it reference? There are no modules named 'services' or 'controllers', only folders inside /app that bear those names. Is this some type of folder level dependency injection I'm not aware of, or is this a bug? It doesn't actually seem to need any dependency injections, since the Controller is defined inside popup.html:

 <div ng-controller="MainController">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions