Problem Question --
I have a Controller in AngularJs which perform the $http.get and in response it gets the Data(Which also has HTML DivID and .Class). How would I take this DivID from response and pass to the view in AngularJs?
My Code----
Controller.js
  $scope.init = function(){
            console.log("I am working")
                UserService.signIn()
                    .success(function (response) {
                        console.log(response) //this display everything such as divID and .Class
                        //Want this divID and pass it to my view
                    })
                    .error(function (status, data) {
                    })
        };$scope.init();
Services.js
(function() {
    var UserService = function($http) {
        var urlBase = 'http://www.corsproxy.com/myWebsite.com';
        var factory = {};
        factory.signIn = function() {
            return $http.get(urlBase);
        };
        return factory;
    };
    UserService.$inject = ['$http'];
    angular.module('app').factory('UserService',UserService);
}());