如何使用Angular Generator创建新的Component 已注销 2021-04-26 61 阅读1分钟 右键选择app文件夹,选择Angular Generator->Component: 下图是新生成的component: app.module.ts也自动添加了product-alerts Component对应的代码: 要获取更多Jerry的原创文章,请关注公众号"汪子熙":