angular-cn icon indicating copy to clipboard operation
angular-cn copied to clipboard

快速上手?快速放弃把!!

Open menghu1994 opened this issue 2 years ago • 3 comments

注意:新版本文档位于aio分支下,master分支下是老版本的文档。

对于错别字或明显的语法错误,建议直接发 PR(在content目录下相应的文件上直接编辑,保存时就会自动变成PR)。

出错的URL:https://angular.cn/start

错误的内容(请拷贝进来一份精确的出错文本,以便我定位): 1,products.ts 文件,只有products文本信息,没有interface Product类型,然后文档中就直接引用了; 2,stackblitz中使用Angular Generator Component,并不会直接把组件注册到模块中(app.module.ts)

建议的修改方式(可选): 1,products.ts 文件加入 export interface Product { id: number; name: string; price: number; description?: string; } 2,在app.module.ts中导入并注册product-alert组件 import { ProductAlertComponent } from './product-alert/product-alert.component'; @NgModule({ declarations: [ ProductAlertComponent, ] })

英雄留名(会出现在鸣谢清单中,默认使用你的github id):menghu1994

menghu1994 avatar Aug 12 '21 10:08 menghu1994

感谢老哥,折腾了一下午始终不知道为什么,完全不了解Angular的我快速上手直接就废了,多亏看了看你这里,跪谢跪谢

zhangyangeng avatar Aug 13 '21 02:08 zhangyangeng

感谢老哥,折腾了一下午始终不知道为什么,完全不了解Angular的我快速上手直接就废了,多亏看了看你这里,跪谢跪谢

文档还是直接看英雄之路吧,起步教程还有一些错误,难搞哦

menghu1994 avatar Aug 17 '21 10:08 menghu1994

不好意思,同步的时候只校对了文案,没有对demo进行验证,因为完全没有动examples中的代码,理论上只要英文版正确,这些examples按理说也不会出错,同步v13的时候我查查这个问题。

asnowwolf avatar Sep 26 '21 08:09 asnowwolf