Angular Typescript Get Query Javascript Function Syntax