Closed JacobMarshallPP closed 9 years ago
Hi Jacob,
Just inject bugsnag
into a controller, service, directive, etc to use bugsnag.notify
or bugsnag.notifyException
. Additionally, keep in mind that angular-bugsnag
creates a no conflict instance of bugsnag
. Also, your PR adds these methods to the bugsnagProvider
instance and not the bugsnag
instance.
Take a look at https://github.com/wmluke/angular-bugsnag/blob/master/test/app/scripts/app.js#L24 for an example. You ca run the example app by running make
and then gulp serve
.
Make sense?
Haha, I just derped. Thanks a bunch @wmluke, that makes perfect sense.
Edit: Whoops, wrong account, but oh well...
Add bugsnag#notify and bugsnag#notifyException for custom error reporting.
I would have thought this was already available, seeing as the README references the angular injected
bugsnag.notify
function. I need this on a current project, and have made local changes.Am I missing anything, or is there a reason the two functions were never included?