Just wonder that anyone deploy your angular-meteor app to any server?
I can’t use Galaxy because I’m using a free version and it asked me my credit card to add mongoDB driver to connect to mLab.
Hi @Urigo,
I mean the routes.js file.
Add these line to the final version or follow steps:
import ChatsCtrl from ‘./controllers/chats.controller’;
import ChatCtrl from ‘./controllers/chat.controller’;
import LoginCtrl from ‘./controllers/login.controller’;
import ConfirmationCtrl from ‘./controllers/confirmation.controller’;
import ProfileCtrl from ‘./controllers/profile.controller’;
import SettingsCtrl from ‘./controllers/settings.controller’;
import NewChatCtrl from ‘./controllers/new-chat.controller’;
Change the controller define in routes.js from:
controller: ‘ChatsCtrl as chats’
To:
controller: ChatsCtrl,
controllerAs: ‘chats’
I’m not so sure why I have to do this, but It would not cause the issue those controller not defined.
I mean, the tutor work fine at local, but when I submit to server like OpenShift or Heroku, it would be fail.
I don’t know where to define “NewChatCtrl” because it’s not declare in the routes.js file.
There only one place that I find the declare is in “new-chat.html” which is like this:
<ion-modal-view ng-controller="NewChatCtrl as chat">
Please help me understand the issue and hopefully that I could solve the problem.
Regards!
============ UPDATE ============
============ UPDATE ============
The problem has been solved.
Please look at this post.