在学习AngularJS期间,遇到一个很费解的问题,也许是看书没有到位,总之现在很头疼
就是在Angular中有的对象是带有 $ 符号的,有的不带。
两者有什么区别吗??
求大神指教。。。
就是在Angular中有的对象是带有 $ 符号的,有的不带。
两者有什么区别吗??
求大神指教。。。
1
billlee Dec 27, 2014
From https://docs.angularjs.org/tutorial/step_05:
The $ prefix is there to namespace Angular-provided services. To prevent collisions it's best to avoid naming your services and models anything that begins with a $. |