in Angular by

Which of the following shows the correct importation of the NGModule decorator?

1. <section>

     <mw-media-item *ngFor="let mediaItem of mediaItems"

          [mediaItem]="mediaItems[0]"

          (delete)="onMediaItemDelete($event)"></mw-media-item>

</section>

2. <section>

     <mw-media-item @ngFor='let mediaItem of mediaItems'

          (mediaItem)="mediaItems[0]"

          (delete)="onMediaItemDelete[$event]"></mw-media-item>

</section>

3. <section>

     <mw-media-item @ngFor="let mediaItem of mediaItems"

          [mediaItem]="mediaItems[0]"

          (delete)="onMediaItemDelete($event)"></mw-media-item>

</section>

4. <section>

     <mw-media-item $ngFor='let mediaItem of mediaItems'

          [mediaItem]="mediaItems[0]"

          [delete]='onMediaItemDelete[$event]"></mw-media-item>

</section>

1 Answer

0 votes
by
Correct Answer is :-  <section>

     <mw-media-item *ngFor="let mediaItem of mediaItems"

          [mediaItem]="mediaItems[0]"

          (delete)="onMediaItemDelete($event)"></mw-media-item>

</section>
...