{"action":"created","issue":{"url":"https://api.github.com/repos/mwaylabs/generator-m/issues/173","labels_url":"https://api.github.com/repos/mwaylabs/generator-m/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/mwaylabs/generator-m/issues/173/comments","events_url":"https://api.github.com/repos/mwaylabs/generator-m/issues/173/events","html_url":"https://github.com/mwaylabs/generator-m/issues/173","id":70107496,"number":173,"title":"wrong controller instantiation with multiple modules","user":{"login":"gruppjo","id":1370779,"avatar_url":"https://avatars.githubusercontent.com/u/1370779?v=3","gravatar_id":"","url":"https://api.github.com/users/gruppjo","html_url":"https://github.com/gruppjo","followers_url":"https://api.github.com/users/gruppjo/followers","following_url":"https://api.github.com/users/gruppjo/following{/other_user}","gists_url":"https://api.github.com/users/gruppjo/gists{/gist_id}","starred_url":"https://api.github.com/users/gruppjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gruppjo/subscriptions","organizations_url":"https://api.github.com/users/gruppjo/orgs","repos_url":"https://api.github.com/users/gruppjo/repos","events_url":"https://api.github.com/users/gruppjo/events{/privacy}","received_events_url":"https://api.github.com/users/gruppjo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mwaylabs/generator-m/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mwaylabs/generator-m/labels/generator%20-%20dependencies","name":"generator - dependencies","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mwaylabs/generator-m/milestones/3","html_url":"https://github.com/mwaylabs/generator-m/milestones/Q2%202015","labels_url":"https://api.github.com/repos/mwaylabs/generator-m/milestones/3/labels","id":1005467,"number":3,"title":"Q2 2015","description":"","creator":{"login":"gruppjo","id":1370779,"avatar_url":"https://avatars.githubusercontent.com/u/1370779?v=3","gravatar_id":"","url":"https://api.github.com/users/gruppjo","html_url":"https://github.com/gruppjo","followers_url":"https://api.github.com/users/gruppjo/followers","following_url":"https://api.github.com/users/gruppjo/following{/other_user}","gists_url":"https://api.github.com/users/gruppjo/gists{/gist_id}","starred_url":"https://api.github.com/users/gruppjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gruppjo/subscriptions","organizations_url":"https://api.github.com/users/gruppjo/orgs","repos_url":"https://api.github.com/users/gruppjo/repos","events_url":"https://api.github.com/users/gruppjo/events{/privacy}","received_events_url":"https://api.github.com/users/gruppjo/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":15,"state":"open","created_at":"2015-03-04T10:08:57Z","updated_at":"2015-04-29T12:19:45Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-04-22T12:07:20Z","updated_at":"2015-04-29T13:21:13Z","closed_at":null,"body":"1. `yo m --skip-prompts`\r\n1. `gulp watch`\r\n\r\nStartCtrl and Service from module main are properly instantiated \r\n\r\n1. `yo m:module test`\r\n1. `gulp watch`\r\n1. go to `http://127.0.0.1:9000/#/main`\r\n\r\nStartCtrl and Service from module test instead of main are falsely instantiated\r\n\r\nThis seems to be a general problem with angular since the problem occurred without using ui-router as well and even without controllerAs syntax. However I'm fairly sure this worked correctly in earlier versions.\r\nindex.html:\r\n```html\r\n<ion-nav-view>\r\n  <ion-view view-title=\"main module\" ng-controller=\"StartCtrl as start\">\r\n    <ion-content>\r\n      <ion-list>\r\n        <ion-item class=\"item item-divider\">\r\n          This is your start template!\r\n        </ion-item>\r\n        <ion-item class=\"item item-icon\">\r\n          icons working?\r\n          <i class=\"icon ion-checkmark-circled\"></i>\r\n        </ion-item>\r\n        <ion-item class=\"item item-thumbnail\">\r\n          images working?<br>\r\n          <img width=\"75\" src=\"main/assets/images/yo@2x.png\">\r\n        </ion-item>\r\n\r\n        <ion-item class=\"item\">{{start.someData.binding}}</ion-item>\r\n        <ion-item class=\"item item-divider\">Environment variables:</ion-item>\r\n        <ion-item class=\"item item-text-wrap\">\r\n          <pre>{{start.ENV | json}}</pre>\r\n        </ion-item>\r\n        <ion-item class=\"item item-divider\">Build variables:</ion-item>\r\n        <ion-item class=\"item item-text-wrap\">\r\n          <pre>{{start.BUILD | json}}</pre>\r\n        </ion-item>\r\n\r\n      </ion-list>\r\n    </ion-content>\r\n  </ion-view>\r\n</ion-nav-view>\r\n```\r\n\r\nmain.js\r\n```js\r\n'use strict';\r\nangular.module('main', [\r\n  'ionic',\r\n  'ngCordova',\r\n  'ui.router',\r\n  // TODO: load other modules selected during generation\r\n]);\r\n// .config(function ($stateProvider, $urlRouterProvider) {\r\n\r\n//   console.log('Allo! Allo from your module: ' + 'main');\r\n\r\n//   $urlRouterProvider.otherwise('/main');\r\n\r\n//   // some basic routing\r\n//   $stateProvider\r\n//     .state('main', {\r\n//       url: '/main',\r\n//       templateUrl: 'main/templates/start.html',\r\n//       controller: 'StartCtrl as start'\r\n//     });\r\n//   // TODO: do your thing\r\n// });\r\n```"},"comment":{"url":"https://api.github.com/repos/mwaylabs/generator-m/issues/comments/97423303","html_url":"https://github.com/mwaylabs/generator-m/issues/173#issuecomment-97423303","issue_url":"https://api.github.com/repos/mwaylabs/generator-m/issues/173","id":97423303,"user":{"login":"MathiasTim","id":1793379,"avatar_url":"https://avatars.githubusercontent.com/u/1793379?v=3","gravatar_id":"","url":"https://api.github.com/users/MathiasTim","html_url":"https://github.com/MathiasTim","followers_url":"https://api.github.com/users/MathiasTim/followers","following_url":"https://api.github.com/users/MathiasTim/following{/other_user}","gists_url":"https://api.github.com/users/MathiasTim/gists{/gist_id}","starred_url":"https://api.github.com/users/MathiasTim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MathiasTim/subscriptions","organizations_url":"https://api.github.com/users/MathiasTim/orgs","repos_url":"https://api.github.com/users/MathiasTim/repos","events_url":"https://api.github.com/users/MathiasTim/events{/privacy}","received_events_url":"https://api.github.com/users/MathiasTim/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T13:21:13Z","updated_at":"2015-04-29T13:21:13Z","body":"related to: #148\r\n\r\n@gruppjo @DrMabuse23 I think we should set up a meeting via Skype, or maybe at M-Way to discuss this. Im not really convinced by our current strategy/use of modules in angular.\r\n"}}