Angular Input Set Function In Cpp