What is the difference between value and constant in angularjs besides whether they can be modified?
Another point may be the effective time. constant因为是注册的是静态值(常量),所以它可以在其他value,factory,service生效之前生效。话优点绕,简单说,就是constantcan be injected and used during config, but the other ones cannot
constant
value
factory
service
Another point may be the effective time.
constant
因为是注册的是静态值(常量),所以它可以在其他value
,factory
,service
生效之前生效。话优点绕,简单说,就是constant
can be injected and used during config, but the other ones cannot