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:

http://idiscover.herokuapp.com/

this code worked:

angular.module('confusionapp') .constant("baseurl", "") 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -