#AngularJS and $$UpgradeModule.

5 messages · Page 1 of 1 (latest)

untold citrus
#

Sorry to bother, I am using AngularJs in my company website, i am also newbie in angularjs. I am working to implement new feature, but when I change code, it show the error

Error: [$injector:modulerr] Failed to instantiate module ... due to: TypeError: Cannot read properties of undefined (reading 'reloadOnSearch') ```

.  Is it because the value is undefined and i need to fix it does it come from some other reason? I not change anything in reloadOnSearch.
twilit meteor
#

The error does not say that reloadOnSearch is undefined. It says that it's trying to read <something>.reloadOnSearch, and it's that <something> which is undefined.

untold citrus
# twilit meteor The error does not say that reloadOnSearch is undefined. It says that it's tryin...

thank you so much, could i ask for more information? I am using angular js to implement feature link my user acccount in website with google account. It using oauth2. So i want my website redirect to url https://accounts.google.com/o/oauth2/auth?scope="+scope+"&client_id="+client_id+"&redirect_uri="+redirect_uri+ "&response_type="+response_type to get code. After login success with google, the google will response to me the code so i want bring this code to become payload to send to new api in my service backend. How I write this code in angularjs when send code to my backend(where handle code and response to user)

#

@twilit meteor

twilit meteor
#

AngularJS is completely obsolete, and I haven't used it for a long time. It has a $http service IIRC. Look at its documentation.