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.

中文版页面模板语法内容格式问题 #266

@HNUHell

Description

@HNUHell

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

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

出错的URL:https://angular.cn/guide/template-syntax

错误的内容(请拷贝进来一份精确的出错文本,以便我定位):

当没有合适的宿主元素防止指令时,可用<ng-container>](structural-directives.html#ngcontainer "对元素进行分组。
to use to group elements when there is no suitable host element for the directive.
如何写自己的结构型指令。
我们只能往一个元素上应用一个结构型指令。
本节是对常见结构型指令的简介:

NgIf - 根据条件把一个元素添加到DOM中或从DOM移除
NgIf - conditionally add or remove an element from the DOM
NgSwitch - a set of directives that switch among alternative views
NgSwitch - 一组指令,用于切换一组视图
NgForOf - repeat a template for each item in a list
NgForOf - 对列表中的每个条目重复套用同一个模板
NgForOf - repeat a template for each item in a list

截图:
image

建议的修改方式(可选):修正链接,调整修复NgSwitch的展示问题

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

感谢您的贡献。

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