Angularjs connected with hub