UKG interview question

How to handle components inside angular.js?