I'll appreciate any help. My problem: I can't show value from $scope.info in my view. I don't have direct access to html, so I can change DOM only via js.
I created new element and added it to the DOM with append() method
$scope.info = {
clicks: 15862,
spent: '$124',
created: '04/08/2017',
author: 'John Kovalenko',
name: 'Advertise US'
};
var info = document.createElement('div');
info = angular.element(info).attr({
'ng-bind': 'info',
'class': 'statistic-info'
});
angular.element(infoContainer).append(info[0]);
I created example here. http://jsfiddle.net/ADukg/13598/
What I'm doing wrong? Thank you