[英]How to autocompile data received via jQuery ajax using AngularJS?
I have a page, all the real-time interactions with the server is done using jQuery ajax. 我有一个页面,与服务器的所有实时交互都是使用jQuery ajax完成的。
Now I'm porting the functionality step by step to AngularJS. 现在,我将功能逐步移植到AngularJS。
My problem is, that page content which is being grabbed and parsed using jQuery ajax, contains angular code which stops working after that until I refresh the page. 我的问题是,使用jQuery ajax捕获和解析的页面内容包含角度代码,此角度代码在此之后停止工作,直到刷新页面为止。
Is it possible to autocompile the content with angular during the parsing by jQuery? 在jQuery解析期间是否可以使用angular自动编译内容?
The answer is that there currently is no answer. 答案是当前没有答案。 I have had the same problem and have spent days searching EVERYWHERE for a solution to this seemingly very common problem.
我遇到了同样的问题,花了几天的时间在各处搜索该看似非常普遍的问题的解决方案。 I have a site that uses ajax to load a template partial that contains some HTML that includes an angular directive.
我有一个网站使用ajax加载模板部分,该模板部分包含一些包含angular指令的HTML。 The directive doesn't work!
该指令不起作用!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.