温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Scope in AngularJS

发布时间:2020-07-16 08:15:22 来源:网络 阅读:526 作者:u5817287 栏目:开发技术

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.      

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI