This repository was archived by the owner on Mar 20, 2024. It is now read-only.
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
快速上手?快速放弃把!! #503
Open
Description
注意:新版本文档位于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
Metadata
Metadata
Assignees
Labels
No labels