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 was archived by the owner on Mar 20, 2024. It is now read-only.
当没有合适的宿主元素防止指令时,可用<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
出错的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
截图:

建议的修改方式(可选):修正链接,调整修复NgSwitch的展示问题
英雄留名(会出现在鸣谢清单中,默认使用你的github id):
感谢您的贡献。