This is an explanation of a common pattern and generally considered best practice that you may see in AngularJS code.