angularjs expression in html <object> tag

后端 未结 5 2321
感情败类
感情败类 2020-12-03 03:42

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:



        
5条回答
  •  一个人的身影
    2020-12-03 03:59

    As of AngularJS 1.1.4, you can use the ng-attr- prefix for the data attribute:

    
    

    See the ngAttr for binding to arbitrary attributes section on AngularJS: Interpolation and data-binding.

提交回复
热议问题