Skip to content

Documentation for configuring the angular plugin #235

Closed
@jeppebemad

Description

@jeppebemad

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions