You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure how we can make this happen as the url is required when the script is injected, but there might be a way to move the script injection into a run statement (instead of a config)...
The text was updated successfully, but these errors were encountered:
You can trigger the injection of the library at a later point like:
angular.module('myApp').controller('main',['$rootScope','ZendeskWidget',function($rootScope,ZendeskWidget){ZendeskWidget.settings({accountUrl: $rootScope.currentUser.accountUrl});// idempotent, so can call multiple times with no further effectZendeskWidget.injectZendeskScript();}]);
To allow for injecting the script with an accountUrl that is retrieved from somewhere in the app unreachable via a .config() statement
Not sure how we can make this happen as the url is required when the script is injected, but there might be a way to move the script injection into a run statement (instead of a config)...
The text was updated successfully, but these errors were encountered: