fOrceez fOrceez - 1 month ago 17
TypeScript Question

AngularJS - *ngFor not showing data

I am following the angular.io 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.
http://pastebin.com/UHewKHH4

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.

Cheers.

Answer

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

Plunker example

Comments