在我的应用程序中有两个应用程序,第一个是基本的,它有这样的路由: localhost:4200/form,localhost:4200/forms,localhost:4200/views,但是现在我有了第二个高级的应用程序router-outlet> in that component and hence it
render view in same page, I want it be like go to new page with URLrouterLink="/mainpage"&
我收到CORS报头丢失错误。我不能修改后端web服务的代码,我只能更改客户端应用程序。我可以在google chrome上添加"Allow control allow origin“插件,但我不想在所有客户端上都安装这个插件来访问api。如何更改AngularJS代码以避免出现此问题?<script>app.controller('myCtrl', function