Update .ts file