Closed
Description
Spent some time figuring out how to configure Raven using the angular plugin. Couldn't find anything in any documentation, so this might be of use to someone, sometime.
Add this in the angular configuration phase:
myApp.value("RavenConfig", {
dsn: 'https://mydsn@app.getsentry.com/xxxx',
config: {
whitelistUrls: ['myurl.com/scripts']
//Additional config options here
}
});
Note that this may not show errors that happen before angular is bootstrapped. To get that, use normal normal configuration, and use dummy RavenConfig object (which will yield an error saying that Raven already has been configured).
Metadata
Metadata
Assignees
Labels
No labels