如果我观察到昆虫元素中的ng咔嗒声
<a href="javascript: void(0);" class="ng-binding"
如果我执行第二.jsp然后控制器和服务正在工作,并以加载方式获取数据。
当我使用下面的过程,我没有得到加载数据。
<%@include file="CacheBustUrl.jsp" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script src="myController.js" ></script>
</head>
<body ng-app="myApp"
ng-controller="myController">
<onload-documents-directive></onload-documents-directive>
<get-documents></get-documents>
</div>
<jsp:include page="first.jsp"></jsp:include>
</div>
</body>
</html>
第一.jsp
.
<%@include file="CacheBustUrl.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body onload-documents-directive>
<div class="modal fade rotate" id="firstPopup">
<div class="modal-dialog" style="width:1032px !important;">
<div class="modal-content">
<div class="container"></div>
<div class="modal-body">
<jsp:include page="second.jsp"></jsp:include>
</div>
</div>
</div>
</div>
</body>
</html>
第二.jsp
<%@include file="CacheBustUrl.jsp"%>
<!doctype html>
<html>
<head>
<script src="${secondControllerjs}"></script>
<script src="${secondServicejs}"></script>
<script src="${cbemptyCheckerjs}"></script>
</head>
<body ng-app="myApp" onload-documents-directive
ng-controller="secondController"
ng-init="mySwitch=true" disable-keys>
</body>
</html>