Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在对特定页面执行Ajax或curl请求时,如何将当前路由的模板内容包含到主布局中_Ajax_Angularjs_Curl - Fatal编程技术网

在对特定页面执行Ajax或curl请求时,如何将当前路由的模板内容包含到主布局中

在对特定页面执行Ajax或curl请求时,如何将当前路由的模板内容包含到主布局中,ajax,angularjs,curl,Ajax,Angularjs,Curl,当从curl向AngularJS页面发出请求时,只加载主布局(index.html),而不是加载整个内容。路由是使用$routeProvider完成的 e、 g: curl -verbose http://host/students 检索到的内容包含index.html,但 <div ng-view=""></div> 是空的。 页面在浏览器中正确加载,呈现与当前路线对应的模板 如何使用类似于curl的http客户机检索包含呈现模板的html

当从curl向AngularJS页面发出请求时,只加载主布局(index.html),而不是加载整个内容。路由是使用$routeProvider完成的

e、 g:

curl -verbose http://host/students
检索到的内容包含index.html,但

<div ng-view=""></div>

是空的。 页面在浏览器中正确加载,呈现与当前路线对应的模板

如何使用类似于curl的http客户机检索包含呈现模板的html