The docs for the angular plugin only show it being added as part of Raven install, which in turn means that angular must be configured before Raven. Copy/paste example:
var angular = require('angular');
var Raven = require('raven-js');
Raven
.config('___PUBLIC_DSN___')
.addPlugin(require('raven-js/plugins/angular'), angular)
.install();
The docs mention ‘To install a plugin just include the plugin after Raven has been loaded and the Raven global variable is registered’ but don’t comment on the relationship to install()
.
The problem with the above is that I prefer to load Raven before all other JS code, including angular. Is it therefore possible to install()
Raven without the plugin, then add the plugin later once angular has loaded?