Skip to content

Commit

Permalink
Document $injector usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 2, 2018
1 parent f2a7984 commit 5a0de80
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ or PR from persons outside of Camptocamp customers or developers.

- [Main principle](#main-principle)
- [Coding style guide](#coding-style-guide)
- [Main changes in the code between ngeo 2.2 and 2.2](#main-changes-in-the-code-between-ngeo-22-and-23)
- [Main changes in the code between ngeo 2.2 and 2.3](#main-changes-in-the-code-between-ngeo-22-and-23)
- [AngularJS names ](#angularJS-names)
- [Module management](#module-management)
- [Good practices on components creation](#good-practices-on-components-creation)
Expand Down Expand Up @@ -150,6 +150,11 @@ const myComponent = {
};
```

## `$injector` usage

`$injector` should be use only for the optional requirements.
The only exception is for the abstract controllers (in `gmf/controleurs`) for upgrade facilities.

## Limit the use of `ng-controller`

Use one `ng-controller` only, the "main controller", somewhere at the root of
Expand Down

0 comments on commit 5a0de80

Please sign in to comment.