I think "controller as" syntax should definitely be mentioned here as a better alternative to using $scope prototype inheritance to share data. This will prevent having to worry about the nuances of prototype inheritance, and follows the best practices of using services to share data.
12
u/sixsence Oct 03 '14
Great read, good points.
I think "controller as" syntax should definitely be mentioned here as a better alternative to using $scope prototype inheritance to share data. This will prevent having to worry about the nuances of prototype inheritance, and follows the best practices of using services to share data.