grtjn / view-file-ng

Angular directive for previewing files.
https://grtjn.github.io/view-file-ng
Apache License 2.0
10 stars 1 forks source link

Allow showing data loaded upfront #6

Closed grtjn closed 7 years ago

grtjn commented 8 years ago

<view-file data="ctrl.myData", instead of <view-file uri="ctrl.myDataUri"..

grtjn commented 8 years ago

Won't work with binary files (videogular, and view-object both require a uri), but maybe for HTML, JSON, Text, and XML?