Scope in AngularJS

From RUNBOOM.COM

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 root scope to scope, while, here, we'd better ignore it as it has no contribution to our understanding of scope in Angularjs.

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容