Select any layer in After Effects that has a parent.
Pick a horizontal and/or vertical constraint for the child layer.
Now you can freely change or keyframe the path, shape, or text of the parent layer and the position of the child layer will adjust automatically.