Pass data from controller as well as from properties object.