←   Read Full Article

Response of userprofile json file

{{userDetail}}

Response of userfriendlist json file

{{userfriends}}

Combined(required) response of both json files processed from the factory

{{requiredInfo}}

Note:Here the data is displayed after combining the response of the 1st two json files.Here the controller has no logic of merging both the calls, entire logic goes inside the factory and controller is kept clean

To download code and learn more visit here