Php Function Optional Parameter Typescript Vs Angular Momentum