简体   繁体   English

如何在 Plunker 上更改 Angular 的版本

[英]How to change the version of Angular on Plunker

I have an Angular 5.2.6 Plunker on plnkr.co, and need to change the Angular version to 5.2.5 to test something.我在 plnkr.co 上有一个 Angular 5.2.6 Plunker,需要将 Angular 版本更改为 5.2.5 以进行测试。 I don't see how to change the version of Angular for the plunk.我不知道如何为 plunk 更改 Angular 的版本。 How can I do that?我怎样才能做到这一点?

您应该能够通过更新加载 Angular(最新版本)模板时创建的全局变量window.AngularVersionForThisPlunker来做到这一点。

if you are using https://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5?p=catalogue如果您使用的是https://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5?p=catalogue

goto the index.html and change 'latest' to the version you want.转到 index.html 并将“最新”更改为您想要的版本。

<script type="text/javascript" charset="utf-8"> window.AngularVersionForThisPlunker = 'latest' </script>

else give use the plunk and I will look into it否则请使用 plunk,我会研究它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM