首页 > 其他 > 详细

Angular6

时间:2018-12-12 14:31:53      阅读:137      评论:0      收藏:0      [点我收藏+]

Structural Directives

https://angular.io/guide/structural-directives#template-input-variable

There are two other kinds of Angular directives, described extensively elsewhere: (1) components and (2) attribute directives.

component manages a region of HTML in the manner of a native HTML element. Technically it‘s a directive with a template.

An attribute directive changes the appearance or behavior of an element, component, or another directive. For example, the built-in NgStyle directive changes several element styles at the same time.

You can apply many attribute directives to one host element. You can only apply one structural directive to a host element.

Angular6

原文:https://www.cnblogs.com/oxspirt/p/10107963.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!