当范围不在角度java脚本中消化时,我该怎么办? [英] What should I do when scope not digest in angular java script ?

查看:69
本文介绍了当范围不在角度java脚本中消化时,我该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试这个时,但那个时候我不知道这个。范围是应用程序控制器和视图之间的粘合剂。在模板链接阶段,指令在作用域上设置$ watch表达式。 $ watch允许指令通知属性更改,这允许指令将更新的值呈现给DOM。



我尝试过:



当我尝试这个时,但是那个时候我不知道这个。范围是应用程序控制器和视图之间的粘合剂。在模板链接阶段,指令在作用域上设置$ watch表达式。 $ watch允许指令被通知属性更改,这允许指令将更新的值呈现给DOM。

解决方案

观察范围上的表达式。


watch允许指令通知属性更改,这允许指令将更新的值呈现给DOM。



我尝试了什么:



当我尝试这个时,但是那个时候我不知道这个。范围是应用程序控制器和视图之间的粘合剂。在模板链接阶段,指令在作用域上设置


监视表达式。在

When I was try to this , But that time I don't know about this. Scope is the glue between application controller and the view. During the template linking phase the directives set up $watch expressions on the scope. The $watch allows the directives to be notified of property changes, which allows the directive to render the updated value to the DOM.

What I have tried:

When I was try to this , But that time I don't know about this. Scope is the glue between application controller and the view. During the template linking phase the directives set up $watch expressions on the scope. The $watch allows the directives to be notified of property changes, which allows the directive to render the updated value to the DOM.

解决方案

watch expressions on the scope. The


watch allows the directives to be notified of property changes, which allows the directive to render the updated value to the DOM.

What I have tried:

When I was try to this , But that time I don't know about this. Scope is the glue between application controller and the view. During the template linking phase the directives set up


watch expressions on the scope. The


这篇关于当范围不在角度java脚本中消化时,我该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆