javascript - What should I write in baseURL while deploying my app at heroku? -
i have problem @ angular.js side in 'services.js' or 'factory.js'.
i not able understand should write in replace of 'here' in baseurl when deplooying app @ heroku:
angular.module('confusionapp') .constant("baseurl", "__here__")
when leave empty, able register, not login.
i using when running app locally:
angular.module('confusionapp') .constant("baseurl", "http://localhost:3000/")
i able connect database mlab.
everything goes well, except, when tried login in app,i got error undefined in replace of $state.go().
here link app, kindly check yourself:
this code worked:
angular.module('confusionapp') .constant("baseurl", "")
Comments
Post a Comment