码迷,mamicode.com
首页 > Web开发 > 详细

Scope in AngularJS

时间:2017-03-26 23:02:30      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:angularjs   scope   

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.      

本文出自 “11885445” 博客,请务必保留此出处http://11895445.blog.51cto.com/11885445/1910477

Scope in AngularJS

标签:angularjs   scope   

原文地址:http://11895445.blog.51cto.com/11885445/1910477

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!