I\'m learning Angular2. I have a component with a variable which is an object. I\'m iterating over the fields of the object, and acording to the type of data of that positio
Globals like window, typeof, enums, or static methods are not available within a template. Only members of the component class and typescript language constructs are available.
You can add a helper method to your component like
isNumber(val): boolean { return typeof val === 'number'; }
and use it like