Closed
Bug 1170030
Opened 10 years ago
Closed 7 years ago
Enable Angular's strict dependency injection mode
Categories
(Tree Management :: Treeherder: Frontend, defect, P3)
Tree Management
Treeherder: Frontend
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1336556
People
(Reporter: emorley, Unassigned)
References
(Blocks 1 open bug)
Details
From https://docs.angularjs.org/guide/production :
"""
Using strict di mode in your production application will throw errors when a injectable function is not annotated explicitly. Strict di mode is intended to help you make sure that your code will work when minified. However, it also will force you to make sure that your injectable functions are explicitly annotated which will improve angular's performance when injecting dependencies in your injectable functions because it doesn't have to dynamically discover a function's dependencies. It is recommended to automate the explicit annotation via a tool like ng-annotate when you deploy to production (and enable strict di mode)
"""
We can either:
1) Enable strict DI mode everywhere, and commit these annotations to the repo (for example of what these annotations look like, see https://github.com/olov/ng-annotate/blob/master/README.md)
2) Enable strict DI mode just in production, and have ng-annotate run as part of grunt build.
Reporter | ||
Updated•7 years ago
|
Component: Treeherder → Treeherder: Frontend
Reporter | ||
Comment 1•7 years ago
|
||
This was fixed in:
https://github.com/mozilla/treeherder/commit/de1137aeb8a61223569b9bc1f1d755451308788c
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•