最佳答案
我很难理解角度依赖注入的意思。所以我的问题是,有人能解释哪些“类型”,如控制器,工厂,提供者等,我们可以注入到其他人,包括其他相同的“类型”的实例?
我实际上要找的是这个表中填充了 y/n。对于具有相同行/列的单元格,这意味着将一个“ type”的值注入到另一个具有相同“ type”的单元格中
+----------------+----------+------------+-----------+---------+--------+----------+---------+-------+
| Can we inject? | Constant | Controller | Directive | Factory | Filter | Provider | Service | Value |
+----------------+----------+------------+-----------+---------+--------+----------+---------+-------+
| Constant | | | | | | | | |
| Controller | | | | | | | | |
| Directive | | | | | | | | |
| Factory | | | | | | | | |
| Filter | | | | | | | | |
| Provider | | | | | | | | |
| Service | | | | | | | | |
| Value | | | | | | | | |
+----------------+----------+------------+-----------+---------+--------+----------+---------+-------+