add component and widget for angularjs