You are using var myApp = angular.module('myApp', []);
inside your controller. If you add an array as a second parameter in angular.module
, the module is automatically created as a new one and overrides the previous one with the same name, so the config
is not working anymore, because in your code it is defined on a different module.
Just change the code in the PeopleController
definition from
var myApp = angular.module('myApp', []);
to
var myApp = angular.module('myApp');
and it should work
edited plunk: http://plnkr.co/edit/bK9vHSPxKmijhlLPS5C5?p=preview