Scope in AngularJS

From the RUNBOOM.COM, it said:

Scope(作用域) 是應用在 HTML (視圖) 和 JavaScript (控制器)之間的紐帶。

Scope 是一個對象,有可用的方法和屬性。

Scope 可應用在視圖和控制器上。


While, how many scopes can we have? is there any structure in it? I got those question when I come to it.

After a tough time reading, I think I have mixed up it with scope in java or python or whatever.

To be simple, it is a way to pass values from controllers to view(HTML), and nothing with structure.

I have to admit that here is a simple structure from rootscope to scope, while, here, we'd better ignore it as it has no contribution to our understanding of scope in Angularjs.      

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章