i have an array :

```
content =    [ { title : 'Canal notifications' , subtitle: ['Notification Push','Email']} , { title : 'Canal notifications' , subtitle: ['Notification Push','Email']} ];

```

i want to iterate this array using ngFor :

```
   <app-toggle-element *ngFor="let element of content; let i = index" [title]="element[i]['title']" [subtitle]="element[i]['subtitle'][i]" ></app-toggle-element>

```

i get this error :

> 
> Cannot read property 'title' of undefined
> 
> 
>