angular 8 study note

本文深入探讨Angular框架的关键特性,包括数据绑定、指令、组件交互、可观察对象等,为开发者提供全面的Angular编程指南。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

guide:

https://angular.io/

1 data binding

https://angular.io/guide/template-syntax

Interpolation {{...}}

 

Data Binding

2. directives

  • component
  • Structural directives

<li *ngFor="let hero of heroes"></li>

<app-hero-detail *ngIf="selectedHero"></app-hero-detail>

  • Attribute directives

<input [(ngModel)]="hero.name">

 

3. entry component

An entry component is any component that Angular loads imperatively, (which means you’re not referencing it in the template), by type. You specify an entry component by bootstrapping it in an NgModule, or including it in a routing definition.

 

4 component interaction (@input @output)

https://angular.io/guide/component-interaction

5.Observables

new Observable(observer);

observable.subscribe(observer);

https://angular.io/guide/observables

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值