简体   繁体   English

如何在 StackBlitz 中使用 Angular CLI 原理图

[英]How to use Angular CLI schematics in StackBlitz

I am using StackBlitz for testing and answering Angular related questions on Stackoverflow.我正在使用 StackBlitz 测试和回答有关 Stackoverflow 的 Angular 相关问题。 I am manually creating Components, Services, Modules, etc. Is there a way to use Angular CLI in StackBlitz to speed up the process?我正在手动创建组件、服务、模块等。有没有办法在 StackBlitz 中使用 Angular CLI 来加快进程?

There's an even simpler way: right-click还有一种更简单的方法:右键单击

在此处输入图像描述

It's pretty neat in the sense that it creates everything and adds it to the AppModule just like angular-cli schematics.从某种意义上说,它非常简洁,它可以创建所有内容并将其添加到AppModule ,就像 angular-cli 示意图一样。

Source: https://github.com/stackblitz/core/issues/132#issuecomment-470386015来源: https://github.com/stackblitz/core/issues/132#issuecomment-470386015

Also, you can drag and drop files from your local system to the stackblitz:此外,您可以将文件从本地系统拖放到 stackblitz:

在此处输入图像描述

so you can generate everything on your local IDE or terminal and then drag and drop it to the stackblitz platform.因此您可以在本地 IDE 或终端上生成所有内容,然后将其拖放到 stackblitz 平台上。

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

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