Skip to content
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

Description

@menghu1994

注意:新版本文档位于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

Activity

  1. zhangyangeng commented on Aug 13, 2021

    @zhangyangeng

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

  2. menghu1994 commented on Aug 17, 2021

    @menghu1994
    Author

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

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

  3. asnowwolf commented on Sep 26, 2021

    @asnowwolf
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions