fOrceez fOrceez - 1 year ago 142
TypeScript Question

AngularJS - *ngFor not showing data

I am following the tutorial on creating a single paged application.
From my understanding

<[tag]*ngFor"let [localVariableName] of [arrayName]">

You should then be able to use localVariableName to access the type's member variables.

It's a bit long so I've posted it in to Pastebin.

I have already gone through the tutorial once but I am going through for the second time trying to customise it to my own needs.


Answer Source

The localVariable name is only available within <[tag]>...</[tag]> and not in the whole template.

Plunker example

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download