I have a scope like $scope.doc_details in my angularjs controller, and I want to use it to display a pdf file by using a tag, like this:
$scope.doc_details
As of AngularJS 1.1.4, you can use the ng-attr- prefix for the data attribute:
ng-attr-
data
See the ngAttr for binding to arbitrary attributes section on AngularJS: Interpolation and data-binding.
ngAttr