Open ng-druid opened 2 years ago
Write queries directly inside angular templates.
<div *query="crud:s3_entity, { prefix: 'ads/' + adId }; ad = entity"> <h1>{{ ad.title }}</h1> <div>{{ ad.description }}</div> </div>
Super charged *ngFor integrated directly with datasources.
<div *query="datasource_type:adaptor, options; ad = entity"> <h1>{{ ad.title }}</h1> <div>{{ ad.description }}</div> </div>
or
<div *query="datasource_type:adaptor?prefix=ads/{{ adId }}}; ad = entity"> <h1>{{ ad.title }}</h1> <div>{{ ad.description }}</div> </div>
implicit item context per iteration
<div *query="datasource_type:adaptor?prefix=ads/{{ adId }}}"> <h1>{{ item.title }}</h1> <div>{{ item.description }}</div> </div>
like a loop
<div *query="let ad in datasource_type:adaptor?prefix=ads/{{ adId }}}"> <h1>{{ ad.title }}</h1> <div>{{ ad.description }}</div> </div>
Write queries directly inside angular templates.
Super charged *ngFor integrated directly with datasources.
or
or
implicit item context per iteration
or
like a loop