What is $rootscope in angular and how to relate with $scope? What is factory and difference between factory and services? How to implement nested views using angular ui route? What is $qservices, deferred and promises and explain? Which type of naming convention used for custom directive? How to implement Spa using angular ui route? Di…