File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ Backbone
2
+ ========
3
+
4
+ Installation
5
+ ------------
6
+
7
+ Start by adding the ``raven.js `` script tag to your page. It should go **after **
8
+ your libraries (e.g. after angular.js), but before your application code.
9
+
10
+ Example:
11
+
12
+ .. sourcecode :: html
13
+
14
+ <script src="bower_components/angular/angular.js"></script>
15
+ <script src="bower_components/angular-route/angular-route.js"></script>
16
+
17
+ <!-- raven-js goes here -->
18
+ <script src="https://cdn.ravenjs.com/1.2.0/angular,native/raven.min.js"></script>
19
+
20
+ <script src="static/app.js"></script>
21
+
22
+ Additionally, inside your main Angular application module, you need to declare ``ngRaven `` as a
23
+ module dependency:
24
+
25
+ .. code-block :: javascript
26
+
27
+ var myApp = angular .module (' myApp' , [
28
+ ' ngRaven' ,
29
+ ' ngRoute' ,
30
+ ' myAppControllers' ,
31
+ ' myAppFilters'
32
+ ]);
33
+
34
+ Configuring the Client
35
+ ----------------------
36
+
37
+ You need to configure raven.js to use your Sentry DSN. This should happen immediately after
38
+ your raven.js script include:
39
+
40
+ .. code-block :: html
41
+
42
+ <script src =" https://cdn.ravenjs.com/1.2.0/angular,native/raven.min.js" ></script >
43
+ <script >
44
+ Raven .config (' ___PUBLIC_DSN___' ).install ();
45
+ </script >
46
+
47
+ At this point, Raven is ready to capture any uncaught exception via standard hooks
48
+ in addition to Backbone specific hooks.
Original file line number Diff line number Diff line change 10
10
" index#reporting-errors"
11
11
]
12
12
},
13
+ "javascript.angular" : {
14
+ "name" : " Angular" ,
15
+ "type" : " framework" ,
16
+ "doc_link" : " integrations/angular/" ,
17
+ "wizard" : [
18
+ " integrations/angular#installation" ,
19
+ " integrations/angular#configuring-the-client"
20
+ ]
21
+ },
13
22
"javascript.backbone" : {
14
23
"name" : " Backbone" ,
15
24
"type" : " framework" ,
You can’t perform that action at this time.
0 commit comments