简体   繁体   English

如何使用AngularJS自动编译通过jQuery ajax接收的数据?

[英]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.

相关问题 在angularjs中渲染通过AJAX接收的模板 - Rendering a template received via AJAX in angularjs 如何使用jQuery提取和添加作为AJAX响应的JSON数据到HTML select下拉列表? - How to extract and add the JSON data received as a AJAX response to the HTML select drop down using jQuery? jQuery Ajax方法成功,但没有收到数据 - jQuery Ajax method succeeds, but no data received 元素不随jQuery Ajax接收的数据一起移动 - Element is not moving with the data received by jquery ajax 如何使用ajax接收的数据? - How to use received data by ajax? 使用jQuery通过Ajax将数据从javascript发送到php。 如何查看回来的数据? - Sending data from javascript to php using via Ajax using jQuery. How to view the data back? 如何使用jQuery从HTML页面获取所有数据ID和金额并通过带有数据的Ajax发布 - How to get all data-id and amount from html page using jQuery and post it via ajax with data 使 Jquery 在通过 ajax 接收的页面内工作 - Making Jquery work within a page that was received via ajax 使用AJAX在javaScript中接收到错误的数据 - Wrong data received in javaScript using AJAX 在使用(基于 webpack 的)ZURB Foundation Framework 时,如何通过 jQuery AJAX 从 PHP 脚本中检索数据? - How to retrieve data from PHP script via jQuery AJAX while using (webpack based) ZURB Foundation Framework?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM