In the above description, an extra “l” is added to the “controlller myController”, which by default will cause yoman (or yo) to create the whole angular deployment, not just the controller. In any case, its collecting parts of this name from the directory of your deployment. So, for an example, I did this:
mkdir yotest cd yotest npm install -g yo grunt-cli bower generator-angular yo angular:controller myController vi app/scripts/controllers/myController.js
And pay attention to the name of my controller module:
... angular.module('yotestApp') ...
hoonto
source share