Controller As

This example shows some lessons learned and best practices using controller as. Note there are two controllers that communicate with each other but do not rely on scope and do not use explicit watches.

Filtered by: {{ctrl.sunsetSvc.filter}}

{{sunset.title}}

{{sunset.location}}

{{ctrl.sunsetSvc.selected.title}}

{{ctrl.sunsetSvc.selected.location}}