an0nh4x0r an0nh4x0r - 1 year ago 94
TypeScript Question

please explain "#variable" vs "let variable" in angular 2

Code Snapshot

In the above picture when i use

#course of courses
it does not work. If i use
let course of courses
it works. Please explain this

Answer Source

This changed from the Beta version of Angular 2 to the RC version.

Now it's let instead of # to not mix up with template variables.

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