Link helper based on angular scopes. Links two state objects and call transforming function when the change is propagated.