You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
出错的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
The text was updated successfully, but these errors were encountered: